fix(Core/Unit): Fix Arena Preparation aura being removed on player ac… (#16925)

fix(Core/Unit): Fix Arena Preparation aura being removed on player actions
This commit is contained in:
Skjalf
2023-08-08 23:48:20 -03:00
committed by GitHub
parent 78a2f5ef8d
commit f5e555082e

View File

@@ -4766,6 +4766,14 @@ void Unit::RemoveAura(AuraApplication* aurApp, AuraRemoveMode mode)
{
if (aurApp == iter->second)
{
// Prevent Arena Preparation aura from being removed by player actions
// It's an invisibility spell so any interaction/spell cast etc. removes it.
// Should only be removed by the arena script, once the match starts.
if (aurApp->GetBase()->HasEffectType(SPELL_AURA_ARENA_PREPARATION))
{
return;
}
RemoveAura(iter, mode);
return;
}