enemy = hero.findNearestEnemy() while True: if hero.attackRange > 30: hero.attack(enemy)
I am in a dungeon and there are waves of mobs. If I try this , then my hero don’t attack. Does anybody know why?
I am doing this in python and I want to do it with while and if loop.