fix(Core): Deserter overrides from BG and Command (#11961)

* fix(Core/Command): Deserter offline add

* feat(Core/Command): Deserter online add restriction

* fix(Core/Battleground): Deserter overrides longer debuff
This commit is contained in:
Kempec Halk
2022-06-13 13:58:49 +02:00
committed by GitHub
parent 8cbc1b0a55
commit 8e7c4fa226
2 changed files with 26 additions and 2 deletions

View File

@@ -1620,7 +1620,11 @@ void Player::ProcessDelayedOperations()
SaveToDB(false, false);
if (m_DelayedOperations & DELAYED_SPELL_CAST_DESERTER)
CastSpell(this, 26013, true); // Deserter
{
Aura* aura = GetAura(26013);
if (!aura || aura->GetDuration() <= 900000)
CastSpell(this, 26013, true);
}
if (m_DelayedOperations & DELAYED_BG_MOUNT_RESTORE)
{