I’m doing siege of stonehold I’ve already done this on another campaign but this time I’ve got the emporer gloves here’s my code
while True:
hero.shield()
enemy = hero.findNearestEnemy()
hero.shield()
hero.moveXY(19, 69)
if enemy:
hero.attack(enemy)
hero.cleave(enemy)
hero.attack(enemy)
hero.moveXY(19, 69)
please put all the code in the triple backticks
so all of it is in here please
oops sorry about that fixing it
1 Like
he gets so close to doing it but last second he dies
he has 337 HP
why dont you use flags so your hero can help attack?
I’ve seen people do it but on my last campaign I was wareing Rusty armor and put that code and he just rushed right in
i dont think it matters what your hero wears
i suggest trying to get your hero to move to the flags then attack when he pics them up
weary
9
You might wan to put if hero.isReady first then cleave.
1 Like
ok I will try to do that do you think cleave and chain lightning will work
weary
11
There’s no point, but you can if you want.
weary
12
And also delete the hero.shield since there’s no enemy.
2 Likes
alright it is fun to chain lightning although because it’s fun to watch the lightning go to most of the enemy’s and just watch them get hit
2 Likes
well then try it i guess…
weary
15
If you insist then sure, but make sure to check if you can cast lighting before actually casting it.
1 Like
i got it when deleting the `hero.shield
’
1 Like
weary
17
Did you complete the level?
if you did remember to select “solved” next to the comment that gave you the answer you are looking for
congatulations and have fun in the desert! 
1 Like