Core/Auras: Implement SpellAuraInterruptFlags2::LeaveArenaOrBattleground
Port From (https://github.com/TrinityCore/TrinityCore/commit/7c0ab49673626a74a3a9d6caee92099c6e265bf1)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user