Function SetPlayerUnitAvailableBJ

Line
8149
Location
blizzard.j
Constant?
no
Type
function
Arguments
integer unitId, boolean allowed, player whichPlayer
Returns
nothing
8149
function SetPlayerUnitAvailableBJ takes integer unitId, boolean allowed, player whichPlayer returns nothing
8150
    if allowed then
8151
        call SetPlayerTechMaxAllowed(whichPlayer, unitId, -1)
8152
    else
8153
        call SetPlayerTechMaxAllowed(whichPlayer, unitId, 0)
8154
    endif
8155
endfunction