Hi folks,
When I cast the ‘summon burl’ spell, it seems that my wizard got frozen for about 2 seconds caused by that, is it a common issue or ?
thanks
Hi folks,
When I cast the ‘summon burl’ spell, it seems that my wizard got frozen for about 2 seconds caused by that, is it a common issue or ?
thanks
hmm…I tested with Pender and saw no delay. Perhaps it is something in the code following the summons. Please share your code and the level you are working on.
hey, thanks for following up, below are the codes:
while True:
flag = hero.findFlag()
if flag:
hero.pickUpFlag(flag)
enemy = hero.findNearestEnemy()
coin = hero.findNearestItem()
if coin:
hero.moveXY(coin.pos.x, coin.pos.y)
if hero.gold > hero.costOf("soldier"):
hero.summon("soldier")
friends = hero.findByType("soldier")
if enemy:
for friend in friends:
hero.command(friend, "attack", enemy)
hero.attack(enemy)
distance = hero.distanceTo(enemy)
if distance < 10:
hero.cast("summon-burl")
elif hero.canCast("invisibility", hero):
hero.cast("invisibility", hero)
elif hero.canCast("chain-lightning", enemy):
hero.cast("chain-lightning", enemy)
elif hero.canCast("flame-armor", hero):
hero.cast("flame-armor", hero)
elif hero.canCast("haste", hero):
hero.cast("haste", hero)
elif hero.canCast("shockwave", enemy):
hero.cast("shockwave", enemy)
elif hero.canCast("slow", enemy):
hero.cast("slow", enemy)
elif hero.isReady("reset-cooldown"):
hero.resetCooldown("chain-lightning")
Ok, but which level is it?
it’s “restless dead” in the Mountain level
I see nothing wrong in the code…maybe it takes a second for the yeti to get in range? I have a hero.wait(2) in mine, in order to wait for the yeti to show up.
cool, what is hero.wait(2)? never used this.
It is granted with the Gilt Wristwatch:
good to know, thanks!