Would this work?

for anomaly in anomalies:
        if anomaly.name == "pull" and hero.isReady("teleport"):
            hero.wait(anomaly.duration/1.5)
            hero.special("teleport", anomaly.x, anomaly.y)

I see how most people use in THAN tp so i want to counter that.
should i put this inbetween each line of code?