The search keyword must be a single word (no spaces).
Function ModifyHeroSkillPoints
- Line
- 3062
- Location
- blizzard.j
- Constant?
- no
- Type
- function
- Arguments
- unit whichHero, integer modifyMethod, integer value
- Returns
- boolean
| 3062 | function ModifyHeroSkillPoints takes unit whichHero, integer modifyMethod, integer value returns boolean |
| 3063 | if (modifyMethod == bj_MODIFYMETHOD_ADD) then |
| 3064 | return UnitModifySkillPoints(whichHero, value) |
| 3065 | elseif (modifyMethod == bj_MODIFYMETHOD_SUB) then |
| 3066 | return UnitModifySkillPoints(whichHero, -value) |
| 3067 | elseif (modifyMethod == bj_MODIFYMETHOD_SET) then |
| 3068 | return UnitModifySkillPoints(whichHero, value - GetHeroSkillPoints(whichHero)) |
| 3069 | else
|
| 3070 | // Unrecognized modification method - ignore the request and return failure.
|
| 3071 | return false |
| 3072 | endif
|
| 3073 | endfunction
|