This trigger is run whenever a certain spell is cast.
It works fine, unless I spam the spell several times within 2 seconds. Then, the dummycaster is only created once at the first place I clicked and not at the rest! However, the text that I put in to debug it appears for each instance that the spell is cast, so I know that the trigger runs every time. I'm a JASS noobzor, but it seems like this should be MUI! Why isn't it?
JASS:
function Trig_Frag_Grenade_Copy_Actions takes nothing returns nothing
local location Temp_Point = GetSpellTargetLoc()
local unit dummy
call TriggerSleepAction( 2 )
call DisplayTextToForce( GetPlayersAll(), R2S(GetLocationX(Temp_Point)) )
set dummy = CreateUnitAtLoc( GetOwningPlayer(GetSpellAbilityUnit()), 039;n002039;, Temp_Point, 0.0 )
call IssueImmediateOrder( dummy, "thunderclap" )
call UnitApplyTimedLife( dummy, 039;BTLF039;, 5.00)
endfunction
It works fine, unless I spam the spell several times within 2 seconds. Then, the dummycaster is only created once at the first place I clicked and not at the rest! However, the text that I put in to debug it appears for each instance that the spell is cast, so I know that the trigger runs every time. I'm a JASS noobzor, but it seems like this should be MUI! Why isn't it?