From ac0576011264708106da20faf8929732ddef7d76 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sun, 21 May 2023 17:10:33 -0400 Subject: [PATCH] Core/Auras: Implement SpellAuraInterruptFlags2::LeaveArenaOrBattleground Port From (https://github.com/TrinityCore/TrinityCore/commit/7c0ab49673626a74a3a9d6caee92099c6e265bf1) --- Source/Game/BattleGrounds/BattleGround.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Game/BattleGrounds/BattleGround.cs b/Source/Game/BattleGrounds/BattleGround.cs index 3eca086f6..2d2e27b0c 100644 --- a/Source/Game/BattleGrounds/BattleGround.cs +++ b/Source/Game/BattleGrounds/BattleGround.cs @@ -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);