For iron and ice, does anybody know why the teleport part doesnt work?

for tower_type, x, y, targeting in tower_configs:
    while hero.mana >= 25:
        for anomalie in hero.findActiveAnomalies():
            if == "teleport":
                hero.special("teleport", anomalie.endX, anomalie.endY)
    if hero.canBuildAt(x, y):
        tower =, x, y)
        if targeting:
            hero.setTargeting(tower, targeting)

Question for you, What language is this? Also did you spell anomaly correctly for the code?