MeleeGrantItemsToHero
- Parameters
-
whichUnit unit
- comment
- patch
1.00
- Source
- Blizzard.j
- return type
nothing
- Source code
function MeleeGrantItemsToHero takes unit whichUnit returns nothing local integer owner = GetPlayerId(GetOwningPlayer(whichUnit)) // If we haven't twinked N heroes for this player yet, twink away. if (bj_meleeTwinkedHeroes[owner] < bj_MELEE_MAX_TWINKED_HEROES) then call UnitAddItemById(whichUnit, 'stwp') set bj_meleeTwinkedHeroes[owner] = bj_meleeTwinkedHeroes[owner] + 1 endif endfunction