- Joined
- Jul 17, 2013
- Messages
- 544
So guys i need help i got tigger in jass here and its supossed to kill alll air units which have 0 mana but it doesnt work for some reason? whats wrong here do i need to type name of my units at it?
//===========================================================================
//===========================================================================
//Trigger:Out of Fuel
//===========================================================================
function Trig_Out_of_Fuel_Func002001002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_FLYING)==true)
endfunction
function Trig_Out_of_Fuel_Func002001002002 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_MANA,GetFilterUnit())<1.00)
endfunction
function Trig_Out_of_Fuel_Func002001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Out_of_Fuel_Func002001002001(),Trig_Out_of_Fuel_Func002001002002())
endfunction
function Trig_Out_of_Fuel_Func002002 takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_Out_of_Fuel_Actions takes nothing returns nothing
//No Fuel(Planes)
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_Out_of_Fuel_Func002001002)),function Trig_Out_of_Fuel_Func002002)
endfunction
//===========================================================================
//===========================================================================
//===========================================================================
//===========================================================================
//Trigger:Out of Fuel
//===========================================================================
function Trig_Out_of_Fuel_Func002001002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_FLYING)==true)
endfunction
function Trig_Out_of_Fuel_Func002001002002 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_MANA,GetFilterUnit())<1.00)
endfunction
function Trig_Out_of_Fuel_Func002001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Out_of_Fuel_Func002001002001(),Trig_Out_of_Fuel_Func002001002002())
endfunction
function Trig_Out_of_Fuel_Func002002 takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_Out_of_Fuel_Actions takes nothing returns nothing
//No Fuel(Planes)
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_Out_of_Fuel_Func002001002)),function Trig_Out_of_Fuel_Func002002)
endfunction
//===========================================================================
//===========================================================================