Core/LFG: Remove Dungeon Cooldown when getting kicked
Port From (https://github.com/TrinityCore/TrinityCore/commit/6c0412c3d92926dd83d0182419795875b9c4f4b8)
This commit is contained in:
@@ -186,6 +186,8 @@ namespace Game.DungeonFinding
|
|||||||
if (method == RemoveMethod.Leave && state == LfgState.Dungeon &&
|
if (method == RemoveMethod.Leave && state == LfgState.Dungeon &&
|
||||||
players >= SharedConst.LFGKickVotesNeeded)
|
players >= SharedConst.LFGKickVotesNeeded)
|
||||||
player.CastSpell(player, SharedConst.LFGSpellDungeonDeserter, true);
|
player.CastSpell(player, SharedConst.LFGSpellDungeonDeserter, true);
|
||||||
|
else if (method == RemoveMethod.KickLFG)
|
||||||
|
player.RemoveAurasDueToSpell(SharedConst.LFGSpellDungeonCooldown);
|
||||||
//else if (state == LFG_STATE_BOOT)
|
//else if (state == LFG_STATE_BOOT)
|
||||||
// Update internal kick cooldown of kicked
|
// Update internal kick cooldown of kicked
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user