Core/Auras: Implement SpellAuraInterruptFlags2::LeaveArenaOrBattleground

Port From (https://github.com/TrinityCore/TrinityCore/commit/7c0ab49673626a74a3a9d6caee92099c6e265bf1)
This commit is contained in:
hondacrx
2023-05-21 17:10:33 -04:00
parent 12c53d6182
commit ac05760112
@@ -845,6 +845,8 @@ namespace Game.BattleGrounds
player.RemoveAura(BattlegroundConst.SpellMercenaryShapeshift);
player.RemovePlayerFlagEx(PlayerFlagsEx.MercenaryMode);
player.RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags2.LeaveArenaOrBattleground);
if (!player.IsAlive()) // resurrect on exit
{
player.ResurrectPlayer(1.0f);