jwallstone
New Member
- Reaction score
- 33
When using the event A Unit Dies, can you check for buffs on the unit, or do all the buffs disappear before the trigger runs?
I am trying to do that right now, and for some reason, the unit is killed by a Soul Burn buff, but checking whether the unit has that buff returns false.
By the way, checking Buffs uses GetUnitAbilityLevel. Can I use this to detect the level of the spell that was cast on it? For example, if Soul Burn level 2 was cast on the unit, does GetUnitAbilityLevel return 2 for the buff? Hovering the mouse over the buff certainly seems to suggest that the buff has a level.
I am trying to do that right now, and for some reason, the unit is killed by a Soul Burn buff, but checking whether the unit has that buff returns false.
By the way, checking Buffs uses GetUnitAbilityLevel. Can I use this to detect the level of the spell that was cast on it? For example, if Soul Burn level 2 was cast on the unit, does GetUnitAbilityLevel return 2 for the buff? Hovering the mouse over the buff certainly seems to suggest that the buff has a level.