ReducePlayerTechMaxAllowed
- Parameters
-
whichPlayer player
techId integer
limit integer
- comment
- patch
-
1.00
- Source
- Blizzard.j (suggest an edit or discuss on Github)
- return type
-
nothing
- Source code
-
function ReducePlayerTechMaxAllowed takes player whichPlayer, integer techId, integer limit returns nothing local integer oldMax = GetPlayerTechMaxAllowed(whichPlayer, techId) // A value of -1 is used to indicate no limit, so check for that as well. if (oldMax < 0 or oldMax > limit) then call SetPlayerTechMaxAllowed(whichPlayer, techId, limit) endif endfunction