mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-27 23:56:25 +00:00
feat(Scripts/Commands): deserter add now also kicks from bg or group (#24451)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user