Core/Dungeon Finder: Move vote kick initialization from Group code to Scripts

--HG--
branch : trunk
This commit is contained in:
Spp
2010-11-23 20:49:57 +01:00
parent d3c9478153
commit fa97598594
3 changed files with 22 additions and 17 deletions
+4
View File
@@ -360,6 +360,10 @@ uint32 Group::RemoveMember(const uint64 &guid, const RemoveMethod &method /* = G
sScriptMgr.OnGroupRemoveMember(this, guid, method, kicker, reason);
// Lfg group vote kick handled in scripts
if (isLFGGroup() && method == GROUP_REMOVEMETHOD_KICK)
return m_memberSlots.size();
// remove member and change leader (if need) only if strong more 2 members _before_ member remove (BG allow 1 member group)
if (GetMembersCount() > (isBGGroup() ? 1u : 2u))
{