mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 01:59:09 +00:00
fix(Core/Spells): health-dependent reactive states should reset on death (#9134)
- Closes #8798
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user