mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-19 03:45:43 +00:00
fix(Core/Battlegrounds): Remove all DoTs when exiting battleground. (#11517)
Fixes #11332
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user