Core/Dungeon Finder: Do not allow to join LFG if queued to Battleground or Arena

--HG--
branch : trunk
This commit is contained in:
Spp
2010-09-28 17:49:30 +02:00
parent d2117fd4ee
commit b4b3eeee10
+1 -1
View File
@@ -576,7 +576,7 @@ void LFGMgr::Join(Player* plr)
sLog.outError("LFGMgr::Join: [" UI64FMTD "] trying to join but is already in queue! Forcing leave before readding", guid);
Leave(plr, grp);
}
else if (plr->InBattleground() || plr->InArena())
else if (plr->InBattleground() || plr->InArena() || plr->InBattlegroundQueue())
result = LFG_JOIN_USING_BG_SYSTEM;
else if (plr->HasAura(LFG_SPELL_DUNGEON_DESERTER))
result = LFG_JOIN_DESERTER;