- Joined
- Dec 16, 2017
- Messages
- 417
Hello guys, i am wondering, what condition can i put, so a metamorphosis spell isn't casted twice, like once when it's being casted, and once when the spell expires, because it triggers the spell effects twice instead of just once, for the metamorphosis spell i have 2 different units. I tried to put the buff of metamorphosis as a condition, but it makes the spell to not work anymore..
-
Demonic Pressence Vengeance Talent Cast
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Metamorphosis (Demon Hunter VENGEANCE)
-
(Current research level of Demonic Pressence (Demon Hunter Talent) for (Owner of (Triggering unit))) Greater than or equal to 1
-
-
Actions
-
Set DPV_Index = (DPV_Index + 1)
-
Set DPV_Caster[DPV_Index] = (Triggering unit)
-
Set DPV_Heal[DPV_Index] = (Real((Agility of DPV_Caster[DPV_Index] (Include bonuses))))
-
Set DPV_Duration[DPV_Index] = (15 + (10 x (Level of (Ability being cast) for DPV_Caster[DPV_Index])))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
DPV_Index Equal to 1
-
-
Then - Actions
-
Trigger - Turn on Demonic Pressence Vengeance Talent Loop <gen>
-
-
Else - Actions
-
-
-
-
Demonic Pressence Vengeance Talent Loop
-
Events
-
Time - Every 1.00 seconds of game time
-
-
Conditions
-
Actions
-
For each (Integer DPV_Loop) from 1 to DPV_Index, do (Actions)
-
Loop - Actions
-
Set DPV_Duration[DPV_Loop] = (DPV_Duration[DPV_Loop] - 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
DPV_Duration[DPV_Loop] Greater than or equal to 0
-
(DPV_Caster[DPV_Loop] is alive) Equal to True
-
-
Then - Actions
-
Unit - Set life of DPV_Caster[DPV_Loop] to ((Life of DPV_Caster[DPV_Loop]) + DPV_Heal[DPV_Loop])
-
Special Effect - Create a special effect attached to the origin of DPV_Caster[DPV_Loop] using Pillar of Flame Green.mdx
-
Special Effect - Destroy (Last created special effect)
-
-
Else - Actions
-
Set DPV_Caster[DPV_Loop] = DPV_Caster[DPV_Index]
-
Set DPV_Heal[DPV_Loop] = DPV_Heal[DPV_Index]
-
Set DPV_Duration[DPV_Loop] = DPV_Duration[DPV_Index]
-
Set DPV_Index = (DPV_Index - 1)
-
Set DPV_Loop = (DPV_Loop - 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
DPV_Index Equal to 0
-
-
Then - Actions
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
-
-
-
-
-
-