JASS:
function GroupConditions1 takes nothing returns boolean
if (IsUnitAlly(GetFilterUnit(),GetOwningPlayer(udg_Shadow_Hero) == true) then
if(IsUnitIdType(GetUnitTypeId(GetFilterUnit()), UNIT_TYPE_HERO) == true) then
if(GetUnitCurrentOrder(GetFilterUnit()) != String2OrderIdBJ("attack")) == true) then
return true
endif
endif
endif
return false
endfunction
I want to pick all heroes that are not attacking and are allies of Shadow Hero. I wanted to ask if there is a better way of doing this?