diff options
author | jackpoz <giacomopoz@gmail.com> | 2014-04-25 00:13:48 +0200 |
---|---|---|
committer | jackpoz <giacomopoz@gmail.com> | 2014-04-25 00:13:48 +0200 |
commit | ab1d0512ea7818d64a63a514195dbd9644d284fb (patch) | |
tree | 45727d2514e64f95cba83b4b400959f05be0a3dd /src/server/game/DungeonFinding/LFGScripts.cpp | |
parent | b4c62ce5b63123054872623a1eba97fbc5140287 (diff) |
Core/LFG: Fix LFG GS requirement not updated until relog
Fix Player receiving "You do not meet the requirements for the chosen dungeons" for too low Gear Score level even after equipping items with high enough Gear Score.
Diffstat (limited to 'src/server/game/DungeonFinding/LFGScripts.cpp')
-rw-r--r-- | src/server/game/DungeonFinding/LFGScripts.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/server/game/DungeonFinding/LFGScripts.cpp b/src/server/game/DungeonFinding/LFGScripts.cpp index 1f182ce0761..aadf1529ffd 100644 --- a/src/server/game/DungeonFinding/LFGScripts.cpp +++ b/src/server/game/DungeonFinding/LFGScripts.cpp @@ -34,14 +34,6 @@ namespace lfg LFGPlayerScript::LFGPlayerScript() : PlayerScript("LFGPlayerScript") { } -void LFGPlayerScript::OnLevelChanged(Player* player, uint8 /*oldLevel*/) -{ - if (!sLFGMgr->isOptionEnabled(LFG_OPTION_ENABLE_DUNGEON_FINDER | LFG_OPTION_ENABLE_RAID_BROWSER)) - return; - - sLFGMgr->InitializeLockedDungeons(player); -} - void LFGPlayerScript::OnLogout(Player* player) { if (!sLFGMgr->isOptionEnabled(LFG_OPTION_ENABLE_DUNGEON_FINDER | LFG_OPTION_ENABLE_RAID_BROWSER)) @@ -74,18 +66,10 @@ void LFGPlayerScript::OnLogin(Player* player) } } - sLFGMgr->InitializeLockedDungeons(player); sLFGMgr->SetTeam(player->GetGUID(), player->GetTeam()); /// @todo - Restore LfgPlayerData and send proper status to player if it was in a group } -void LFGPlayerScript::OnBindToInstance(Player* player, Difficulty difficulty, uint32 mapId, bool /*permanent*/) -{ - MapEntry const* mapEntry = sMapStore.LookupEntry(mapId); - if (mapEntry->IsDungeon() && difficulty > DUNGEON_DIFFICULTY_NORMAL) - sLFGMgr->InitializeLockedDungeons(player); -} - void LFGPlayerScript::OnMapChanged(Player* player) { Map const* map = player->GetMap(); |