I have tried so many ideas for summits gate and I am beggining to find a sulution. I am using Omarn with his new Brew ability because the heals are value. I need to make destroying the cheif and warlocks more efficient. Here is my code:
while True:
enemy = hero.findNearestEnemy()
while hero.gold>hero.costOf("soldier"):
hero.summon("soldier")
flag = hero.findFlag("green")
if flag:
hero.move(flag.pos)
elif hero.canCast("summon-undead"):
hero.cast("summon-undead")
elif hero.isReady("throw") and hero.distanceTo(enemy.pos) < hero.throwRange:
hero.throw(enemy)
elif hero.canCast('raise-dead'):
hero.cast("raise-dead")
elif hero.isReady("brew"):
hero.brew("heal")
elif enemy:
hero.attack(enemy)