Core/Dungeon Finder: Add support for dungeon cooldown and luck of the draw spells

--HG--
branch : trunk
This commit is contained in:
Spp
2010-09-26 14:49:55 +02:00
parent ef16cc9109
commit 2718701708
3 changed files with 27 additions and 17 deletions
+2 -1
View File
@@ -321,7 +321,8 @@ bool Group::AddMember(const uint64 &guid, const char* name)
Player *player = sObjectMgr.GetPlayer(guid);
if (player)
{
sLFGMgr.Leave(player);
if (player->isUsingLfg())
sLFGMgr.Leave(player);
if (!IsLeader(player->GetGUID()) && !isBGGroup())
{
// reset the new member's instances, unless he is currently in one of them