UnitModifySkillPoints
- Parameters
-
whichHero unit
skillPointDelta integer
- comment
Adds the amount to the units available skill points. Calling with a negative number reduces the skill points by that amount. Returns false if the amount of available skill points is already zero and if it's called with any non-positive number. Returns true in any other case.
- note
If
skillPointDelta
is greater than the amount of skillpoints the hero actually can spend (like 9 for three 3-level abilities) only that amount will be added. NegativeskillPointDelta
works as expected.- return type
boolean
- Source code
native UnitModifySkillPoints takes unit whichHero, integer skillPointDelta returns boolean
- Source
- common.j
- wc3modding.com
- UnitModifySkillPoints