feat(Scripts/Commands): deserter add now also kicks from bg or group (#24451)

This commit is contained in:
sogladev
2026-01-20 23:49:09 +01:00
committed by GitHub
parent d5b59552e2
commit 253eb1997a
2 changed files with 13 additions and 5 deletions

View File

@@ -1642,12 +1642,9 @@ void Player::ProcessDelayedOperations()
if (m_DelayedOperations & DELAYED_SAVE_PLAYER)
SaveToDB(false, false);
if (m_DelayedOperations & DELAYED_SPELL_CAST_DESERTER)
{
Aura* aura = GetAura(26013);
if (!aura || aura->GetDuration() <= 900000)
if ((m_DelayedOperations & DELAYED_SPELL_CAST_DESERTER)
&& !GetAura(26013))
CastSpell(this, 26013, true);
}
if (m_DelayedOperations & DELAYED_BG_MOUNT_RESTORE)
{