Marvic June B. Corpuz
You can change this now in User CP.
- Reaction score
- 1
I have this ability called Reversion using the Spell Shield (Amulet) ability. If the hero has it's buff and an enemy unit targets a targeting spell to the hero, the ability cast by the enemy is returned. I have created the trigger for it but i had trouble in ordering the dummy to cast the spell on the caster. Can someone out there help me to make it work. I know that there's a custom script for it because I have seen it once work on a WC3 game. Here's my trigger anyway.
Lights Reversion
Events
Unit - A unit Starts the effect of an ability
Conditions
((Target unit of ability being cast) has buff Lights Revision ) Equal to True
Actions
Set LR_Spell = (Ability being cast)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Casting unit) belongs to an enemy of (Owner of (Target unit of ability being cast))) Equal to True
Then - Actions
Unit - Create 1 Dummy for (Owner of (Target unit of ability being cast)) at (Position of (Target unit of ability being cast)) facing Default building facing degrees
Unit - Add LR_Spell to (Last created unit)
Unit - Set level of LR_Spell for (Last created unit) to (Level of (Ability being cast) for (Casting unit))
Unit - Add a 1.20 second Generic expiration timer to (Last created unit)
Else - Actions
Lights Reversion
Events
Unit - A unit Starts the effect of an ability
Conditions
((Target unit of ability being cast) has buff Lights Revision ) Equal to True
Actions
Set LR_Spell = (Ability being cast)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Casting unit) belongs to an enemy of (Owner of (Target unit of ability being cast))) Equal to True
Then - Actions
Unit - Create 1 Dummy for (Owner of (Target unit of ability being cast)) at (Position of (Target unit of ability being cast)) facing Default building facing degrees
Unit - Add LR_Spell to (Last created unit)
Unit - Set level of LR_Spell for (Last created unit) to (Level of (Ability being cast) for (Casting unit))
Unit - Add a 1.20 second Generic expiration timer to (Last created unit)
Else - Actions