codecombat / codecombat

Game for learning how to code.
http://codecombat.com
MIT License
7.98k stars 4.13k forks source link

Multiple methods (for instance unit.attackRange) are not working for types 'shaman' and 'brawler' in Giants Gate. #6409

Closed spinstate closed 3 years ago

spinstate commented 3 years ago

Using python, the methods unit.maxSpeed, unit.attackDamage, unit.attackCooldown, unit.attackRange are not working for types 'shaman' and 'brawler' in Giants Gate. The methods work properly for types 'thrower', 'ogre', 'munchkin', 'warlock', and 'giant', but raise a TypeError when called for a 'shaman' or 'brawler' unit.

Also, the unit.findDistanceTo(target) and unit.findNearest(objects) don't seem to be working for any unit types.

joshkordek3 commented 3 years ago

You could create your own .distanceTo() and .findNearest() function, but yes, the unit.attackRange/unit.attackDamage/whatever functions are un-creatable.

spinstate commented 3 years ago

Thanks for the suggestion joshkordek3.

That's in fact what I've done. I just thought someone should report the issue, since this is an educational platform, and a student encountering an 'official' method that doesn't work might assume the problem is with some nonexistent error in their code, and spend fruitless hours trying to figure why it isn't working.

That's the kind of problem that can end a budding career in CS (or cause early onset ulcers : )