- Joined
- Jun 20, 2005
- Messages
- 108
Hello there.
Could you guys help me here? My function is making w3 crash, and I'm clueless about it. I'm just learning JASS, so I assume it's a rookie mistake.
Here's the code (well, part of it):
Thanks in advance.
Could you guys help me here? My function is making w3 crash, and I'm clueless about it. I'm just learning JASS, so I assume it's a rookie mistake.
Here's the code (well, part of it):
JASS:
local unit L_CASTER = GetTriggerUnit()
local player L_PLAYER = GetOwningPlayer(L_CASTER)
local unit L_UNIT = GroupPickRandomUnit(GetUnitsInRectMatching(GetPlayableMapRect(), GetBooleanAnd(((GetUnitTypeId(GetFilterUnit()) == 'h000') == true), ( IsUnitEnemy(GetFilterUnit(), L_PLAYER) == true ))))
Thanks in advance.