- Joined
- Jul 26, 2008
- Messages
- 1,009
Is there any way to make this easier?
JASS:
function ReturnsSomeUnit takes nothing returns boolean
return GetFilterUnit() == TEMP
endfunction
set TEMP = someunit
call TriggerRegisterPlayerUnitEvent(trig, GetOwningPlayer(someunit), EVENT_PLAYER_UNIT_SELECTED, function ReturnsSomeUnit)