Which one of the two is more is more efficient of the two?
1. Checking if a unit has a particular buff or not
like
or checking a unit array of 50 and checking is a unit it there or not using loop.
I heard checking unit buff is very less efficient so asking...
1. Checking if a unit has a particular buff or not
like
JASS:
function Trig_Untitled_Trigger_002_Actions takes nothing returns nothing
if (GetUnitAbilityLevel(GetTriggerUnit(), 'B000') > 0) then
call DisplayTextToForce( GetPlayersAll(), "ok" )
endif
or checking a unit array of 50 and checking is a unit it there or not using loop.
I heard checking unit buff is very less efficient so asking...