Core/LFG: Remove dungeon cooldown when completing random dungeons
Port From (https://github.com/TrinityCore/TrinityCore/commit/97be87b7d55dbbc794e83bf6a70eff4df397dd91)
This commit is contained in:
@@ -1349,12 +1349,20 @@ namespace Game.DungeonFinding
|
|||||||
}
|
}
|
||||||
|
|
||||||
Player player = Global.ObjAccessor.FindPlayer(guid);
|
Player player = Global.ObjAccessor.FindPlayer(guid);
|
||||||
if (!player || player.GetMap() != currMap)
|
if (player == null)
|
||||||
{
|
{
|
||||||
Log.outDebug(LogFilter.Lfg, $"Group: {gguid}, Player: {guid} not found in world");
|
Log.outDebug(LogFilter.Lfg, $"Group: {gguid}, Player: {guid} not found in world");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (player.GetMap() != currMap)
|
||||||
|
{
|
||||||
|
Log.outDebug(LogFilter.Lfg, $"Group: {gguid}, Player: {guid} is in a different map");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
player.RemoveAurasDueToSpell(SharedConst.LFGSpellDungeonCooldown);
|
||||||
|
|
||||||
LFGDungeonData dungeonDone = GetLFGDungeon(dungeonId);
|
LFGDungeonData dungeonDone = GetLFGDungeon(dungeonId);
|
||||||
uint mapId = dungeonDone != null ? dungeonDone.map : 0;
|
uint mapId = dungeonDone != null ? dungeonDone.map : 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user