• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Spell] convert damage to heal

Status
Not open for further replies.
Level 29
Joined
Sep 26, 2009
Messages
2,596
Use Damage detection system (DDS) - it's a system that can be downloaded here on hive.
With this system you can modify damage taken by any unit. So what you could do is to create an aura that does nothing but give a buff (e.g. a devotion aura that does not increase armor). Create a trigger that uses the DDS's event to detect when any unit takes damage. If that unit has buff from your custom aura, then calculate 25% of damage taken, call a function from the DDS to heal to unit for the calculated amount and then null damage taken.
 
Status
Not open for further replies.
Top