This is very interesting ( and here it will obviously not run)
hero.command(paladin, "shield", hero) // the hero is far away
I tried hero.command(paladin, "shield", target )
in my code expecting an error but there was none!
Does this command make sense?
Edit:
No, this command doesn’t make sense - it must be hero.command(paladin, "shield")
But in python there must be an error message!!! Try this code:
def fp(a, b):
print('a: ' + a)
print('b: ' + b)
print('### python missing 1 argument ###')
fp(1)
print('### adding 1 argument plus ###')
fp(1, 2, 3)
The output in the browser console is:
and that is normal if the code was in java script but not for python.
Same code run in python console ( not in Code Combat ):
I cannot say that’s a BUG, maybe this was the intention of the game designers, but count carefully the
number of arguments you’re feeding your function