function GetAttackedUnitBJ takes nothing returns unit
return GetTriggerUnit()
endfunction
Untitled Trigger 001
Events
Unit - A unit Is attacked
Conditions
((Triggering unit) has buff Arcane Opportunity) Equal to True
Actions
Unit - Add Attack Speed to (Triggering Unit)
Wait 3.00 seconds
Unit - Remove Attack Speed from (Triggering Unit)
For MUI, Triggering Unit is MUI. It does not get overwritten.
There is a post about it somewhere around here about it.
http://world-editor-tutorials.thehelper.net/cat_usersubmit.php?view=51725
If you look in JassCraft (If you understand JASS) you can look up GetAttackingUnitBJ() and you'll get:
JASS:function GetAttackedUnitBJ takes nothing returns unit return GetTriggerUnit() endfunction
Well, now we know Attacking Unit is equal to Triggering Unit. Thus, it is MUI.
So, we know we can do:
Code:Untitled Trigger 001 Events Unit - A unit Is attacked Conditions ((Triggering unit) has buff Arcane Opportunity) Equal to True Actions Unit - Add Attack Speed to (Triggering Unit) Wait 3.00 seconds Unit - Remove Attack Speed from (Triggering Unit)