Spray-
Member
- Reaction score
- 1
Heya guys! Im doing a spell that resembles the Spirit of Redemption (priest holy talent spell) from WoW. Basically when the Hero dies, it turns into a different unit, is invurneble and can cast any spells free of cost for a few seconds and then dying properly.
Everything works fine except the "Event" to activate the spell. Im not letting the Hero actually DIE to actvate it, cause that would F* my hero revival triggers, so ive done this:
The SpiritofRedON is used for another trigger that puts the Hero's mana to 100%.
Basically the question is: Because some.. attacks/spells could get the Hero from 100 to 0, thus not triggering the Trigger, how would i bypass this? Is there a way to "Block" the excessive damage dealt?
Thanks in advance
Everything works fine except the "Event" to activate the spell. Im not letting the Hero actually DIE to actvate it, cause that would F* my hero revival triggers, so ive done this:
Code:
Events
Unit - Priest 0016 <gen>'s life becomes Less than or equal to 50.00
Conditions
(Priest 0016 <gen> has buff Brilliance Aura) Equal to True
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Spirit of Redemption for Priest 0016 <gen>) Equal to 1
Then - Actions
Unit - Pause Priest 0016 <gen>
Unit - Make Priest 0016 <gen> Invulnerable
Animation - Play Priest 0016 <gen>'s death animation
Wait 1.33 seconds
Special Effect - Create a special effect attached to the origin of Priest 0016 <gen> using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
Wait 0.10 seconds
Animation - Change Priest 0016 <gen>'s size to (140.00%, 140.00%, 140.00%) of its original size
Wait 0.10 seconds
Animation - Change Priest 0016 <gen>'s size to (180.00%, 180.00%, 180.00%) of its original size
Wait 0.10 seconds
Animation - Change Priest 0016 <gen>'s size to (220.00%, 220.00%, 220.00%) of its original size
Wait 0.10 seconds
Animation - Change Priest 0016 <gen>'s size to (260.00%, 260.00%, 260.00%) of its original size
Wait 0.10 seconds
Animation - Change Priest 0016 <gen>'s size to (300.00%, 300.00%, 300.00%) of its original size
Unit - Add Divinity to Priest 0016 <gen>
Set SpiritOfRedON = True
Animation - Play Priest 0016 <gen>'s stand animation
Set SpiritEffect = (Last created special effect)
Unit - Unpause Priest 0016 <gen>
Wait 10.00 seconds
Animation - Change Priest 0016 <gen>'s size to (260.00%, 260.00%, 260.00%) of its original size
Wait 0.10 seconds
Animation - Change Priest 0016 <gen>'s size to (220.00%, 220.00%, 220.00%) of its original size
Wait 0.10 seconds
Animation - Change Priest 0016 <gen>'s size to (180.00%, 180.00%, 180.00%) of its original size
Wait 0.10 seconds
Animation - Change Priest 0016 <gen>'s size to (140.00%, 140.00%, 140.00%) of its original size
Wait 0.10 seconds
Animation - Change Priest 0016 <gen>'s size to (100.00%, 100.00%, 100.00%) of its original size
Wait 0.10 seconds
Unit - Remove Divinity from Priest 0016 <gen>
Unit - Make Priest 0016 <gen> Vulnerable
Unit - Kill Priest 0016 <gen>
Special Effect - Destroy SpiritEffect
Set SpiritOfRedON = False
The SpiritofRedON is used for another trigger that puts the Hero's mana to 100%.
Basically the question is: Because some.. attacks/spells could get the Hero from 100 to 0, thus not triggering the Trigger, how would i bypass this? Is there a way to "Block" the excessive damage dealt?
Thanks in advance