Can anyone help me with this trigger also? What's supposed to happen is units with the buff "Righteous Persecution" heal all nearby ally units for 100 hp that are in 900 range of the dying unit. I think it doesnt work because dying units dont have buffs : /.
-
Righteous Persecution 2
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
Actions
-
Set RPText = True
-
Set RPHealRange = 900.00
-
Set RPPoint = (Position of (Dying unit))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Dying unit) has buff Righteous Persecution) Equal to True
-
-
Then - Actions
-
Set RPGroup = (Units within RPHealRange of RPPoint)
-
Unit Group - Pick every unit in RPGroup and do (Actions)
-
Loop - Actions
-
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + 100.00)
-
Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
RPText Equal to True
-
-
Then - Actions
-
Floating Text - Create floating text that reads 100 above (Picked unit) with Z offset 0.00, using font size 9.00, color (10.00%, 100.00%, 10.00%), and 0.00% transparency
-
Floating Text - Change (Last created floating text): Disable permanence
-
Floating Text - Set the velocity of (Last created floating text) to 128.00 towards 90.00 degrees
-
Floating Text - Change the fading age of (Last created floating text) to 0.40 seconds
-
Floating Text - Change the lifespan of (Last created floating text) to 1.20 seconds
-
-
Else - Actions
-
Do nothing
-
-
-
-
-
-
Else - Actions
-
Do nothing
-
-
-
-