SetHeroLevelBJ
- Parameters
whichHero unitnewLevel integershowEyeCandy boolean- comment
- patch
1.07
- Source
- Blizzard.j (suggest an edit or discuss on Github)
- return type
nothing- Source code
function SetHeroLevelBJ takes unit whichHero, integer newLevel, boolean showEyeCandy returns nothing local integer oldLevel = GetHeroLevel(whichHero) if (newLevel > oldLevel) then call SetHeroLevel(whichHero, newLevel, showEyeCandy) elseif (newLevel < oldLevel) then call UnitStripHeroLevel(whichHero, oldLevel - newLevel) else // No change in level - ignore the request. endif endfunction