fix(Core/Spells): do not remove stances when teleported from Instance/BG (#7469)

- Closes #7402
This commit is contained in:
UltraNix
2021-08-25 01:55:37 +02:00
committed by GitHub
parent c28d6ee992
commit 032ca32a04

View File

@@ -1586,7 +1586,10 @@ void Player::ProcessDelayedOperations()
if (m_entryPointData.mountSpell)
{
// xinef: remove shapeshift auras
RemoveAurasByType(SPELL_AURA_MOD_SHAPESHIFT);
if (IsInDisallowedMountForm())
{
RemoveAurasByType(SPELL_AURA_MOD_SHAPESHIFT);
}
AddAura(m_entryPointData.mountSpell, this);
m_entryPointData.mountSpell = 0;
}