Core/LFG: Remove Dungeon Cooldown when getting kicked

This commit is contained in:
Giacomo Pozzoni authored and Ovahlord committed 2019-10-07 00:44:24 +02:00
1 parent c17ffc0b91
commit 354927050b
1 file changed
+2
@@ -186,6 +186,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