for tower_type, x, y, targeting in tower_configs:
while hero.mana >= 25:
for anomalie in hero.findActiveAnomalies():
if anomalie.name == "teleport":
hero.special("teleport", anomalie.endX, anomalie.endY)
if hero.canBuildAt(x, y):
tower = hero.build(tower_type, x, y)
if targeting:
hero.setTargeting(tower, targeting)
Question for you, What language is this? Also did you spell anomaly correctly for the code?