diff options
author | Shauren <shauren.trinity@gmail.com> | 2023-05-13 18:35:54 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2023-05-13 18:35:54 +0200 |
commit | 47b1de526e9f380c96307edc5fb618ad18f04206 (patch) | |
tree | 1aa3eafa8ba17588b9c0ddc7df7deff31971dd15 | |
parent | dd10ac27fee1fa91661422458d22bb1d2dbab6de (diff) |
Core/Units: Corrected AURA_INTERRUPT_FLAG_NOT_SEATED implementation to only interrupt when actually standing (flag not renamed but its correct name is SpellAuraInterruptFlags::Standing)
-rw-r--r-- | src/server/game/Entities/Unit/Unit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 12fdafb6887..f2f1fbb955e 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -3382,7 +3382,7 @@ void Unit::_ApplyAura(AuraApplication* aurApp, uint8 effMask) return; // Sitdown on apply aura req seated - if (aura->GetSpellInfo()->AuraInterruptFlags & AURA_INTERRUPT_FLAG_NOT_SEATED && IsStandState()) + if (aura->GetSpellInfo()->AuraInterruptFlags & AURA_INTERRUPT_FLAG_NOT_SEATED && GetStandState() == UNIT_STAND_STATE_STAND) SetStandState(UNIT_STAND_STATE_SIT); Unit* caster = aura->GetCaster(); @@ -10341,7 +10341,7 @@ void Unit::SetStandState(UnitStandStateType state) { SetByteValue(UNIT_FIELD_BYTES_1, UNIT_BYTES_1_OFFSET_STAND_STATE, state); - if (IsStandState()) + if (state == UNIT_STAND_STATE_STAND) RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_NOT_SEATED); if (GetTypeId() == TYPEID_PLAYER) |