mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-25 06:37:19 +00:00
Trevius: Mercenaries can now zone once again.
This commit is contained in:
1 parent
0b44f58518
commit
a6b9e6cb3c
9 files changed
+2575
-2393
No files matched your search
+17
-2
@@ -1069,14 +1069,29 @@ void Group::GroupMessage_StringID(Mob* sender, uint32 type, uint32 string_id, co
|
||||
void Client::LeaveGroup() {
|
||||
Group *g = GetGroup();
|
||||
|
||||
if(g) {
|
||||
if(g)
|
||||
{
|
||||
if(g->GroupCount() < 3)
|
||||
{
|
||||
g->DisbandGroup();
|
||||
}
|
||||
else
|
||||
{
|
||||
g->DelMember(this);
|
||||
} else {
|
||||
if (GetMerc() && GetMerc()->HasGroup() && GetMerc()->GetGroup() == g)
|
||||
{
|
||||
g->DelMember(GetMerc());
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//force things a little
|
||||
database.SetGroupID(GetName(), 0, CharacterID());
|
||||
if (GetMerc())
|
||||
{
|
||||
database.SetGroupID(GetMerc()->GetName(), 0, CharacterID());
|
||||
}
|
||||
}
|
||||
|
||||
isgrouped = false;
|
||||
|
||||
Reference in new issue
Block a user