• 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.

[Solved] Stacking hp increase when killing units with specific buff

Status
Not open for further replies.
Level 4
Joined
May 11, 2020
Messages
43
i'm working on an ability that debuffs an enemy unit, and if said unit dies in the duration the caster gains a max hp increase. However when a unit dies all buffs are purged, so it can't pass the check and thus can't trigger the hp increase. Any idea how to work around this?
 
Level 14
Joined
Oct 16, 2010
Messages
749
If you're only intending on having 1 hero with ability you could try adding units to a group when the spell is cast on them, having a periodic check to see if they have the buff (if not remove from group), then a trigger to check if a unit within the group dies - if they die while still in the group then add hp?

If multiple units/heroes are able to use this ability it'd be more difficult but still possible
 
Status
Not open for further replies.
Top