I need help with taunting because my character keeps running into the explosive traps and it keeps doing it repeatedly so I am stuck.
def dealEnemy(enemy):
# If enemy.type is “munchkin”:
if enemy.type == “munchkin”:
# Then attack it:
hero.attack(enemy)
# If the enemy’s type is “brawler”:
if enemy.type == “brawler”:
# Then say something to call the brawler:
hero.say(“I dont think so brawler”)
pass
while True:
enemy = hero.findNearestEnemy()
if enemy:
dealEnemy(enemy)
else:
hero.moveXY(30, 34)`
while True:
if enemy and enemy.type == munchkin:
enemy = hero.findNearestEnemy()
# If enemy.type is “munchkin”:
# Then attack it:
hero.isReady("cleave")
hero.cleave(enemy)
# If the enemy’s type is “brawler”:
else:
"enemy.type == “brawler”:"
# Then say something to call the brawler:
"hero.say(“I dont think so brawler”)"
pass
while True:
# If enemy.type is “munchkin”:
if enemy and enemy.type == munchkin:
enemy = hero.findNearestEnemy()
# Then attack it:
hero.isReady("cleave")
hero.cleave(enemy)
hero.attack(enemy)
# If the enemy’s type is “brawler”:
'enemy = hero.findNearestEnemy():'
'(Elif enemy and enemy.type == brawler)'
"enemy.type == “brawler”:"
# Then say something to call the brawler:
"hero.say(“I dont think so brawler”)"
pass
while True:
# If enemy.type is “munchkin”:
if enemy and enemy.type == munchkin:
enemy = hero.findNearestEnemy()
# Then attack it:
hero.attack(enemy)
# If the enemy’s type is “brawler”:
'(Elif enemy and enemy.type == brawler)'
if enemy and enemy.type == brawler:
# Then say something to call the brawler"
hero.say("I don't think so brawler")
pass