- Joined
- Dec 16, 2017
- Messages
- 343
Hello guys, i am trying to make rune tap spell from wow of death knight blood, but what seems to be a pretty simple to do thing, make's it work so hard xD after the heal, i want the caster to have for 4-5 seconds an buff of dmg reduction, like spiked carapace, so that's what i am adding to him, but for some reason it gets deleted before 5 seconds, it gets deleted after one second..
-
Rune Tap Cast
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Rune Tap (Death Knight BLOOD)
-
Actions
- Set RT_Index = (RT_Index + 1)
- Set RT_Caster[RT_Index] = (Triggering unit)
- Set RT_Heal[RT_Index] = (150.00 x (Real((Level of (Ability being cast) for RT_Caster[RT_Index]))))
- Set RT_Spell[RT_Index] = |r Spell Book DK RuneTap(Death Knight Blood)
- Set RT_Duration[RW_Index] = 5
- Unit - Set life of RT_Caster[RT_Index] to ((Life of RT_Caster[RT_Index]) + RT_Heal[RT_Index])
- Unit - Add RT_Spell[RT_Index] to RT_Caster[RT_Index]
- Player - Disable RT_Spell[RT_Index] for (Owner of RT_Caster[RT_Index])
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- RT_Index Equal to 1
-
Then - Actions
- Trigger - Turn on Rune Tap Loop <gen>
- Else - Actions
-
If - Conditions
-
Events
-
Rune Tap Loop
-
Events
- Time - Every 1.00 seconds of game time
- Conditions
-
Actions
-
For each (Integer RT_Loop) from 1 to RT_Index, do (Actions)
-
Loop - Actions
- Set RT_Duration[RT_Loop] = (RT_Duration[RT_Loop] - 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- RT_Duration[RT_Loop] Greater than or equal to 0
-
Then - Actions
- Special Effect - Create a special effect attached to the overhead of RT_Caster[RT_Loop] using Pillar of Flame Blue.mdx
- Special Effect - Destroy (Last created special effect)
-
Else - Actions
- Unit - Remove RT_Spell[RT_Loop] from RT_Caster[RT_Loop]
- Set RT_Caster[RT_Loop] = RT_Caster[RT_Index]
- Set RT_Heal[RT_Loop] = RT_Heal[RT_Index]
- Set RT_Duration[RT_Loop] = RT_Duration[RT_Index]
- Set RT_Index = (RT_Index - 1)
- Set RT_Loop = (RT_Loop - 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- RT_Index Equal to 0
-
Then - Actions
- Trigger - Turn off (This trigger)
- Else - Actions
-
If - Conditions
-
If - Conditions
-
Loop - Actions
-
For each (Integer RT_Loop) from 1 to RT_Index, do (Actions)
-
Events