Okay its me again with another problem.
I want to make this skill that when activated waits 5 seconds and then deals all the damage the caster have taken in these 5 seconds in damage to all nearby units. I have made that skill but the problem is that whenever its healed it reduces the damage it deals. I want it to ignore healing (no -damage from healing)
This is the trigger, the reasons for the calculations are because I wanted it to deal 2x damage taken.
Help is appreciated
I want to make this skill that when activated waits 5 seconds and then deals all the damage the caster have taken in these 5 seconds in damage to all nearby units. I have made that skill but the problem is that whenever its healed it reduces the damage it deals. I want it to ignore healing (no -damage from healing)
This is the trigger, the reasons for the calculations are because I wanted it to deal 2x damage taken.
Code:
Revenge
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Revenge
Actions
Set Revenge_self = (Integer((Life of (Triggering unit))))
Wait 5.00 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering unit) is dead) Not equal to True
Then - Actions
Set Revenge_hp_pastx2 = (Revenge_self x 2)
Set Revenge_hp_nowx2 = (Integer(((Life of (Triggering unit)) x 2.00)))
Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 600.00 at (Position of (Triggering unit)), dealing (Real((Revenge_hp_pastx2 - Revenge_hp_nowx2))) damage of attack type Spells and damage type Normal
Else - Actions