mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/LFG: Remove Dungeon Cooldown when getting kicked
This commit is contained in:
@@ -189,6 +189,8 @@ void LFGGroupScript::OnRemoveMember(Group* group, ObjectGuid guid, RemoveMethod
|
||||
if (method == GROUP_REMOVEMETHOD_LEAVE && state == LFG_STATE_DUNGEON &&
|
||||
players >= LFG_GROUP_KICK_VOTES_NEEDED)
|
||||
player->CastSpell(player, LFG_SPELL_DUNGEON_DESERTER, true);
|
||||
else if (method == GROUP_REMOVEMETHOD_KICK_LFG)
|
||||
player->RemoveAurasDueToSpell(LFG_SPELL_DUNGEON_COOLDOWN);
|
||||
//else if (state == LFG_STATE_BOOT)
|
||||
// Update internal kick cooldown of kicked
|
||||
|
||||
|
||||
Reference in New Issue
Block a user