HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Infinite Loops...how to fix this

05-11-2006, 10:53 AM#1
poz
I've a trigger like this that reflect 15% damage back to the attacker(as well as reducing the 15% damage) everytime he takes damage. It works fine until a unit with the Ability "Spiked Shell" which reflects damage too. And thus end up a endless loop of reflecting damage to each other until the War3 crash. Is there anyway to prevent such thing hapens but still get the same effect?
This is the trigger:
Trigger:
Take Damage
Events
Conditions
Collapse Actions
Unit - Set life of Crusader to ((Life of Crusader) + ((Damage taken) x 0.15))
Unit - Cause Crusader to damage (Damage source), dealing ((Damage taken) x 0.15) damage of attack type Normal and damage type Normal

Event is "Crusader takes Damage" which is added by the other trigger only when the hero learns that skill.
05-11-2006, 11:06 AM#2
aquilla
Try turning the trigger off before it damages the unit and then turning back on after

It should work, but if doesn't, can't you use thorns or spiked carapace instead?
05-11-2006, 11:14 AM#3
poz
The reason I dont want to use spiked carapace is because I want it to reflect spell damage too.

Btw turning the trigger off works, thanks for the info =)
05-11-2006, 01:48 PM#4
Soultaker
I don't know of a way to see how much a spell does damage.. how do you do that?

(It is relevant to this thread)

- Soultaker