fix(Core/Spells): health-dependent reactive states should reset on death (#9134)

- Closes #8798
This commit is contained in:
UltraNix
2021-11-14 21:22:50 +01:00
committed by GitHub
parent 701b288864
commit c3ed68bb5e

View File

@@ -13707,9 +13707,10 @@ void Unit::setDeathState(DeathState s, bool despawn)
if (s == JUST_DIED)
{
// xinef: needed for procs, this is refreshed in Unit::Update
//ModifyAuraState(AURA_STATE_HEALTHLESS_20_PERCENT, false);
//ModifyAuraState(AURA_STATE_HEALTHLESS_35_PERCENT, false);
ModifyAuraState(AURA_STATE_HEALTHLESS_20_PERCENT, false);
ModifyAuraState(AURA_STATE_HEALTHLESS_35_PERCENT, false);
ModifyAuraState(AURA_STATE_HEALTH_ABOVE_75_PERCENT, false);
// remove aurastates allowing special moves
ClearAllReactives();
ClearDiminishings();