hi ;
i get stuck with this code
`
while True:
enemy = hero.findNearestEnemy()
target = enemy
item = hero.findNearestItem()
if hero.canCast("chain-lightning", target) and target:
hero.cast("chain-lightning", target)
if not target:
break
if enemy:
hero.attack(enemy)
if item:
hero.moveXY(item.pos.x, item.pos.y)
if hero.time == 80:
hero.moveXY(26, 24)
hero.moveXY(9, 87)
if hero.time == 190:
hero.moveXY(144, 115)
if hero.time == 280:
hero.moveXY(56,120)
hero.moveXY(41,78)
hero.moveXY(82,68)
hero.say("now die")
hero.moveXY(102, 93)
hero.moveXY(142, 75)
pet.moveXY(102, 93)
hero.moveXY(105, 60)
hero.moveXY(62, 70)
hero.moveXY(83, 57)
hero.moveXY(97,69)
`#no boss fight event get triggerd
someone know why?
thx