Dying unit has buff

Kazuga

Let the game begin...
Reaction score
110
When the unit dies the buff is removed...?
You would need "dying unit had buff" but of what I know it doesn't exist.
 
1

1-Cent

Guest
Code:
Trigger Name
    Events
        Unit - A unit Dies
    Conditions
        ((Triggering unit) has buff [B][U]BUFF[/U][/B]) Equal to True
    Actions
         [B][U]Do what ever you want here[/U][/B]
:)
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
Dead units do not have any buffs...


If you need it, well, detect when the spell that adds it is cast, put the unit in some group.
Periodically (every 1.0 seconds will do) check if the unit still has the buff.
If the buff is gone, remove it from the group.

If it dies and is still in the group, it had the buff when dying.
 

darkRae

Ueki Fan (Ueki is watching you)
Reaction score
173
Dying unit simply doesn't have buff.
No, you can't do anything about this.

EDIT:
If it's aura, then check every second for units within range of some unit, and if it has the aura buff, add it into a unit group.
 

Kazuga

Let the game begin...
Reaction score
110
You could start the trigger when the unit has less than somewhere around 5 hp.
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> You could start the trigger when the unit has less than somewhere around 5 hp.

Well, if my Hero does 50-70 damage, that's instant death to anything with, let's say 20hp.
You would also need a damage detection system.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top