Core/LFG: Remove Dungeon Cooldown when getting kicked

Port From (https://github.com/TrinityCore/TrinityCore/commit/6c0412c3d92926dd83d0182419795875b9c4f4b8)
This commit is contained in:
hondacrx
2022-01-04 20:54:23 -05:00
parent 1a35b4c6f7
commit b2ddeb3408
+2
View File
@@ -186,6 +186,8 @@ namespace Game.DungeonFinding
if (method == RemoveMethod.Leave && state == LfgState.Dungeon &&
players >= SharedConst.LFGKickVotesNeeded)
player.CastSpell(player, SharedConst.LFGSpellDungeonDeserter, true);
else if (method == RemoveMethod.KickLFG)
player.RemoveAurasDueToSpell(SharedConst.LFGSpellDungeonCooldown);
//else if (state == LFG_STATE_BOOT)
// Update internal kick cooldown of kicked