- Joined
- Jan 16, 2008
- Messages
- 156
The following trigger below doesn't function properly for some reason. Apparently sometimes it causes everyone in the game to simply return to windows and close WC3 without any warning message or fatal error.
Essentially this spell returns any damage taken by Rend to a target off his choice, and it has 3 levels, so it returns 30%, 60% or 90% of the damage he takes to a target. I have another trigger for the Rend that uses the event "Unit - Rend 0927 <gen> Takes damage" if that has anything to do with anything. I have a couple of theories but I'm really at a loss and hoping someone can point out something obvious that is wrong with this.
When I looked through past threads I noticed that converting an integer into a real often caused issues (I do that here: (Real((Level of Inner Rage for Rend 0927 <gen>)))).
What do you guys think?
-
Inner Rage Activate
-
Events
-
Unit - Rend 0927 <gen> Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Inner Rage
-
-
Actions
-
Set InnerRageTarget = (Target unit of ability being cast)
-
Trigger - Turn on Inner Rage <gen>
-
Wait 20.00 seconds
-
Trigger - Turn off Inner Rage <gen>
-
-
-
Inner Rage
-
Events
-
Unit - Rend 0927 <gen> Takes damage
-
-
Conditions
-
Actions
-
Unit - Cause Rend 0927 <gen> to damage InnerRageTarget, dealing ((Damage taken) x (0.30 x (Real((Level of Inner Rage for Rend 0927 <gen>))))) damage of attack type Chaos and damage type Normal
-
-
Essentially this spell returns any damage taken by Rend to a target off his choice, and it has 3 levels, so it returns 30%, 60% or 90% of the damage he takes to a target. I have another trigger for the Rend that uses the event "Unit - Rend 0927 <gen> Takes damage" if that has anything to do with anything. I have a couple of theories but I'm really at a loss and hoping someone can point out something obvious that is wrong with this.
When I looked through past threads I noticed that converting an integer into a real often caused issues (I do that here: (Real((Level of Inner Rage for Rend 0927 <gen>)))).
What do you guys think?