HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Simple Question

10-15-2007, 02:04 AM#1
burningice95
Why isn't this working. The dummy spell is an aura based of Unholy aura, and targets changed to enemies

I know I'm using the right buff
I know the unit who died had the buff when they were alive.

But the trigger doesn't run (debug messages dont show up)

Wtf?
Trigger:
Redemption
Collapse Events
Unit - A unit Dies
Collapse Conditions
((Dying unit) has buff Redemption (Buff (Reaper))) Equal to True
Collapse Actions
Game - Display to (All players) the text: IT WORKED
Unit - Set life of Reaper to ((Life of (Picked unit)) + (10.00 + (4.00 x (Real((Level of Redemption (Reaper) for Reaper))))))
Game - Display to (All players) the text: 1
Unit - Set mana of Reaper to ((Mana of Reaper) + (5.00 + (2.00 x (Real((Level of Redemption (Reaper) for Reaper))))))
Game - Display to (All players) the text: 2
Special Effect - Create a special effect attached to the chest of Reaper using Abilities\Spells\Undead\DeathPact\DeathPactCaster.mdl
Special Effect - Destroy (Last created special effect)
Game - Display to (All players) the text: 3
10-15-2007, 02:21 AM#2
SkriK
Maybe you need to do a
Trigger:
Set Unit has buff equal to True
10-15-2007, 02:48 AM#3
Vexorian
When a unit dies and the "dies" event is triggered all buffs are removed.

That does not happen with the life is <= 0.0 event. So from there you'll need some creativity on making it work.
10-15-2007, 09:53 AM#4
Pyrogasm
Or use global groups.
10-16-2007, 02:29 AM#5
burningice95
Like a unit group for all units with the buff? And add/remove units who come within range of the aura-giving unit....?

That wont work though, because the aura-giving unit isn't preplaced.

Or a periodic trigger that adds all the units w/ the buff to a group