- Joined
- May 31, 2008
- Messages
- 698
So i have this boolean, but i need a boolexpr
^This is the problem
This is the whole function
It says "cannot convert boolean to code"
So i guess im supposed to put the boolean into a separate function and then call that function, but is there a way to do this without creating another function?
JASS:
Condition(IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(udg_Caster[udg_A])) == true )
This is the whole function
JASS:
function Trig_Untitled_Trigger_002_Actions takes nothing returns nothing
call GroupEnumUnitsInRange(udg_TempGroup[0], GetUnitX(GetTriggerUnit()), GetUnitY(GetTriggerUnit()), (I2R(GetUnitAbilityLevel(udg_Caster[udg_A], 'A002')) - 1) * udg_BaseAOE[udg_A] + udg_AOEIncrement[udg_A], Condition(IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(udg_Caster[udg_A])) == true ))
endfunction
It says "cannot convert boolean to code"
So i guess im supposed to put the boolean into a separate function and then call that function, but is there a way to do this without creating another function?