ModifyHeroSkillPoints
- Parameters
-
whichHero unit
modifyMethod integer
value integer
- comment
- patch
-
1.07
- Source
- Blizzard.j (suggest an edit or discuss on Github)
- return type
-
boolean
- Source code
-
function ModifyHeroSkillPoints takes unit whichHero, integer modifyMethod, integer value returns boolean if (modifyMethod == bj_MODIFYMETHOD_ADD) then return UnitModifySkillPoints(whichHero, value) elseif (modifyMethod == bj_MODIFYMETHOD_SUB) then return UnitModifySkillPoints(whichHero, -value) elseif (modifyMethod == bj_MODIFYMETHOD_SET) then return UnitModifySkillPoints(whichHero, value - GetHeroSkillPoints(whichHero)) else // Unrecognized modification method - ignore the request and return failure. return false endif endfunction