fix(Core): Remove RDF cooldown after completion (#5034)

This commit is contained in:
mdawx
2021-04-05 12:39:11 +02:00
committed by GitHub
parent 94273da084
commit 462bbc6b24

View File

@@ -2099,6 +2099,12 @@ namespace lfg
continue;
}
// Remove Dungeon Finder Cooldown if still exists
if (player->HasAura(LFG_SPELL_DUNGEON_COOLDOWN))
{
player->RemoveAurasDueToSpell(LFG_SPELL_DUNGEON_COOLDOWN);
}
// Xinef: Update achievements, set correct amount of randomly grouped players
if (dungeon->difficulty == DUNGEON_DIFFICULTY_HEROIC)
if (uint8 count = GetRandomPlayersCount(player->GetGUID()))