# That's a big'un! With some clever thinking, Ivy should be able to take care of this situation single-handedly.
while True:
# Find the archer.
friend = hero.findNearest(hero.findFriends())
enemy = hero.findNearest(hero.findEnemies())
# Tell the archer to attack the enemy!
if friend and enemy:
hero.command(friend, "attack", enemy)
# Wait, no, that doesn't work that well. Maybe try something else?
# The munchkin is awfully slow...
hero.cast("chain-lightning", enemy)
So what I did is, you command it to move out of the munchkins way like this hero.command(friend, "move", {"x": 10, "y": 13})
. Then I attacked the munchkin.
So all and all your attack paragraph should look like this(the way I did it)
if friend and enemy:
hero.command(friend, "move", {"x": 10, "y": 13})
hero.attack(enemy)
ok
I will try jilbhbmmnhjxzcbjkdbcsjkdbvhx
dosent work it gives me a lot of error tuff
Use a wizard for the level(it can shoot through walls)
k
ghajdXkhcxhjxzjhkxjzhlkhkjzxckhjxzc
I beat it
thanks but why is ivy uselesss
1 Like
Ivy is something you just need to get out of the way. Can you please mark whichever post helped solve your problem with the little
1 Like
This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.