fix(Core/Battlegrounds): Remove all DoTs when exiting battleground. (#11517)

Fixes #11332
This commit is contained in:
UltraNix
2022-04-27 15:12:33 +02:00
committed by GitHub
parent b2bda2f7a1
commit 35596b0b01

View File

@@ -11033,6 +11033,11 @@ void Player::LeaveBattleground(Battleground* bg)
// xinef: reset corpse reclaim time
m_deathExpireTime = GameTime::GetGameTime().count();
// Remove all dots
RemoveAurasByType(SPELL_AURA_PERIODIC_DAMAGE);
RemoveAurasByType(SPELL_AURA_PERIODIC_DAMAGE_PERCENT);
RemoveAurasByType(SPELL_AURA_PERIODIC_LEECH);
// pussywizard: clear movement, because after porting player will move to arena cords
GetMotionMaster()->MovementExpired();
StopMoving();