Closed spinstate closed 3 years ago
You could create your own .distanceTo() and .findNearest() function, but yes, the unit.attackRange/unit.attackDamage/whatever functions are un-creatable.
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 : )
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.