Core/Dungeon Finder: Added condition to avoid unnecessary checks to the joining result.
This commit is contained in:
@@ -539,6 +539,9 @@ void LFGMgr::Join(Player* plr, uint8 roles, const LfgDungeonSet& selectedDungeon
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// it could be changed
|
||||||
|
if (joinData.result == LFG_JOIN_OK)
|
||||||
|
{
|
||||||
// Expand random dungeons and check restrictions
|
// Expand random dungeons and check restrictions
|
||||||
if (rDungeonId)
|
if (rDungeonId)
|
||||||
dungeons = GetDungeonsByRandom(rDungeonId);
|
dungeons = GetDungeonsByRandom(rDungeonId);
|
||||||
@@ -548,6 +551,7 @@ void LFGMgr::Join(Player* plr, uint8 roles, const LfgDungeonSet& selectedDungeon
|
|||||||
if (dungeons.empty())
|
if (dungeons.empty())
|
||||||
joinData.result = grp ? LFG_JOIN_PARTY_NOT_MEET_REQS : LFG_JOIN_NOT_MEET_REQS;
|
joinData.result = grp ? LFG_JOIN_PARTY_NOT_MEET_REQS : LFG_JOIN_NOT_MEET_REQS;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Can't join. Send result
|
// Can't join. Send result
|
||||||
if (joinData.result != LFG_JOIN_OK)
|
if (joinData.result != LFG_JOIN_OK)
|
||||||
|
|||||||
Reference in New Issue
Block a user