Code: Select all
local unit u = GetTriggerUnit()
local effect e
local real x = GetSpellTargetX()
local real y = GetSpellTargetY()
local string fx = ""
if IsPlayerAlly(GetLocalPlayer(),GetOwningPlayer(u)) then
set fx = <MY EFFECT STRING>
endif
set e = AddSpecialEffect(fx, x, y)