In the level you need to defeat all the ogres, not the skeletons. If you defeat the warlocks first with your hero, your troops should be able to finish off the rest.
You need to use an if statement to see if there is a paladin
where do i need to use an if statement
Here:
def commandFriends():
friends = hero.findFriends()
for friend in friends:
if friend.type == "paladin":
commandPaladin(friend)
if friend.type == "archer":
commandArcher(friend)
if friend.type == "soldier":
commandSoldier(friend)
Um, @abc, this is a quote from lundy, above:
what ? what do you mean?
what is it supposed to look like?
can you guys still help
Patience please…abc said you needed an if statement and then posted a block of code that you already have. Give him a chance to explain what he meant.