function Trig_No_Autocast_Fierce_Blow_Conditions takes nothing returns boolean
if ( not ( GetIssuedOrderId() == OrderId("coldarrows") ) ) then
call print(I2S(GetIssuedOrderId()))
call print(OrderId2String(GetIssuedOrderId()))
call print("2")
return false
endif
call print("3")
return true
endfunction
function Trig_No_Autocast_Fierce_Blow_Actions takes nothing returns nothing
call IssueImmediateOrder( GetTriggerUnit(), "uncoldarrows" )
call print("1")
endfunction
//===========================================================================
function InitTrig_No_Autocast_Fierce_Blow takes nothing returns nothing
set gg_trg_No_Autocast_Fierce_Blow = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_No_Autocast_Fierce_Blow, EVENT_PLAYER_UNIT_ISSUED_ORDER )
call TriggerAddCondition( gg_trg_No_Autocast_Fierce_Blow, Condition( function Trig_No_Autocast_Fierce_Blow_Conditions ) )
call TriggerAddAction( gg_trg_No_Autocast_Fierce_Blow, function Trig_No_Autocast_Fierce_Blow_Actions )
endfunction