Your paladins don’t attack the enemies and I don’t think it’s a good idea checking for three conditions and doing them all. The structure of my function is:
def commandPaladin(paladin):
if condition1:
# do smth
elif condition2:
# do smth
else:
if condition3:
# do smth
else:
# do smth
@xython Thank you.
I changed my code then my paladins could move to the position i wanted, but there is one paladin who turn his direction to my minefield(see the first picture). He is the one which attacked by warlock and blow up all my mines…(see the second picture)
Have you passed the level? When trying to replay the level I encountered the same case: "one paladin turns his direction to the minefield and blows it up ".
There can be only 2 plausible explanations:
The warlock has some wicked magic
This is a bug
I think I restarted the level with another hero and then all problems have gone and I replay it without problems.