here you go
start
stop
ef start
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Life Drain
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Target unit of ability being cast)) Not equal to (Owner of (Triggering unit))
Then - Actions
Custom script: set udg_ManaLightningArt = AddLightning("Abilities\\Spells\\Human\\SiphonMana\\SiphonManaTarget.mdl", true, GetUnitX(GetTriggerUnit()), GetUnitY(GetTriggerUnit()), GetUnitX(GetSpellTargetUnit()), GetUnitY(GetSpellTargetUnit()))
Set VariableSet ManaLightningArt = (Last created lightning effect)
Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Other\Drain\DrainCaster.mdl
Set VariableSet ManaCaster = (Last created special effect)
Special Effect - Create a special effect attached to the origin of (Target unit of ability being cast) using Abilities\Spells\Other\Drain\DrainTarget.mdl
Set VariableSet ManaTarget = (Last created special effect)
Else - Actions
ef stop
Events
Unit - A unit Stops casting an ability
Conditions
(Ability being cast) Equal to Life Drain
Actions
Custom script: call DestroyLightning(udg_ManaLightningArt)
Special Effect - Destroy ManaCaster
Special Effect - Destroy ManaTarget
Hi polardude, the lightning effedt still dont work for me, there is no more error message but in the game the effect doent appear.here you go
start
stop
ef start
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Life Drain
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Target unit of ability being cast)) Not equal to (Owner of (Triggering unit))
Then - Actions
Custom script: set udg_ManaLightningArt = AddLightning("Abilities\\Spells\\Human\\SiphonMana\\SiphonManaTarget.mdl", true, GetUnitX(GetTriggerUnit()), GetUnitY(GetTriggerUnit()), GetUnitX(GetSpellTargetUnit()), GetUnitY(GetSpellTargetUnit()))
Set VariableSet ManaLightningArt = (Last created lightning effect)
Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Other\Drain\DrainCaster.mdl
Set VariableSet ManaCaster = (Last created special effect)
Special Effect - Create a special effect attached to the origin of (Target unit of ability being cast) using Abilities\Spells\Other\Drain\DrainTarget.mdl
Set VariableSet ManaTarget = (Last created special effect)
Else - Actions
ef stop
Events
Unit - A unit Stops casting an ability
Conditions
(Ability being cast) Equal to Life Drain
Actions
Custom script: call DestroyLightning(udg_ManaLightningArt)
Special Effect - Destroy ManaCaster
Special Effect - Destroy ManaTarget