• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

[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 13
Joined
Oct 16, 2010
Messages
731
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