- Joined
- Dec 20, 2008
- Messages
- 67
Hello,
Please help me somebody...
I don't know what's wrong there, I know that my function returns boolean, but the function GetUnitsInRectMatching requie something like boolexpr code ... ???? what is boolexpr ?
What do I have to do?
my function IsAttackable looks like that:
I want that to select all units around whole map which returns TRUE if I call IsAttackable with them as in ().. 
Please tell me what to do :-(
Thanks for any help
Please help me somebody...
I don't know what's wrong there, I know that my function returns boolean, but the function GetUnitsInRectMatching requie something like boolexpr code ... ???? what is boolexpr ?

What do I have to do?
JASS:
GetUnitsInRectMatching(GetPlayableMapRect(), IsAttackable(GetFilterUnit()))
JASS:
private function IsAttackable takes unit u returns boolean // HERE YOU CAN SET UP WHICH UNITS ARE AFFECTABLE BY KNOCK AND STUN EFFECTS
if IsUnitEnemy(u, GetOwningPlayer(caster)) == FALSE or IsUnitType(u, UNIT_TYPE_STRUCTURE) or IsUnitType(u, UNIT_TYPE_MECHANICAL) or GetWidgetLife(u) <= 0.405 or UnitHasBuffBJ(u, 'B001') then
return FALSE
endif
return TRUE
endfunction

Please tell me what to do :-(
Thanks for any help