Dungeon Finder: Add proposals, find group algorithm and teleport support

Note: Adds hability to find a group and be teleported to dungeon, but no rewards yet (WIP)

--HG--
branch : trunk
This commit is contained in:
Spp committed 2010-08-11 15:55:27 +02:00
1 parent f9468e7e5d
commit 41534a1324
6 files changed
+682 -3

No files matched your search

+3 -1
View File
@@ -49,7 +49,7 @@ Group::Group()
m_counter = 0;
m_maxEnchantingLevel= 0;
m_LfgQueued = false;
m_LfgStatus = 1;
m_LfgStatus = LFG_STATUS_NOT_SAVED;
m_LfgDungeonEntry = 0;
for (uint8 i = 0; i < TARGETICONCOUNT; ++i)
@@ -355,6 +355,8 @@ uint32 Group::RemoveMember(const uint64 &guid, const uint8 &method)
if (isLfgQueued())
sLFGMgr.Leave(NULL, this);
else if (isLFGGroup())
sLFGMgr.OfferContinue(this);
// remove member and change leader (if need) only if strong more 2 members _before_ member remove
if (GetMembersCount() > (isBGGroup() ? 1 : 2)) // in BG group case allow 1 members group