Monovertex
Formerly Smith_S9
- Reaction score
- 1,461
I encounter this problem in GUI, but because i made my spell in Jass, I'll post here.
The actions doesn't matter. The problem is that the trigger simply doesn't fires with both those conditions. If I remove the "String2OrderIdBJ("move") == GetIssuedOrderId()" the trigger works. Any solution? Thanks in advance.
Code:
//***|Raw Codes|***
function Psihic_Blast_Psihic_Buff takes nothing returns integer
return 'B000' //RawCode of the Psihic Blast buff
endfunction
//Conditions-----------------------------------------------------------------
function Psihic_Blast_Conditions takes nothing returns boolean
return GetUnitAbilityLevel(GetTriggerUnit(), Psihic_Blast_Psihic_Buff()) > 0 and String2OrderIdBJ("move") == GetIssuedOrderId()
endfunction
//Actions--------------------------------------------------------------------
function Psihic_Blast_Actions takes nothing returns nothing
endfunction
//===========================================================================
function InitTrig_Psihic_Blast takes nothing returns nothing
set gg_trg_Psihic_Blast = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Psihic_Blast, EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
call TriggerAddCondition( gg_trg_Psihic_Blast, Condition( function Psihic_Blast_Conditions ) )
call TriggerAddAction( gg_trg_Psihic_Blast, function Psihic_Blast_Actions )
endfunction
The actions doesn't matter. The problem is that the trigger simply doesn't fires with both those conditions. If I remove the "String2OrderIdBJ("move") == GetIssuedOrderId()" the trigger works. Any solution? Thanks in advance.