MeleePlayerIsCrippled
- Parameters
-
whichPlayer player
- comment
- patch
1.07
- Source
- Blizzard.j
- return type
boolean
- Source code
function MeleePlayerIsCrippled takes player whichPlayer returns boolean local integer playerStructures = GetPlayerStructureCount(whichPlayer, true) local integer playerKeyStructures = BlzGetPlayerTownHallCount(whichPlayer) // Dead players are not considered to be crippled. return (playerStructures > 0) and (playerKeyStructures <= 0) endfunction