Core/Groups: Use the proper RemoveMethod when player leaves a group
--HG-- branch : trunk
This commit is contained in:
@@ -1711,7 +1711,7 @@ class Player : public Unit, public GridObject<Player>
|
|||||||
bool IsInSameRaidWith(Player const* p) const { return p == this || (GetGroup() != NULL && GetGroup() == p->GetGroup()); }
|
bool IsInSameRaidWith(Player const* p) const { return p == this || (GetGroup() != NULL && GetGroup() == p->GetGroup()); }
|
||||||
void UninviteFromGroup();
|
void UninviteFromGroup();
|
||||||
static void RemoveFromGroup(Group* group, uint64 guid, RemoveMethod method = GROUP_REMOVEMETHOD_DEFAULT);
|
static void RemoveFromGroup(Group* group, uint64 guid, RemoveMethod method = GROUP_REMOVEMETHOD_DEFAULT);
|
||||||
void RemoveFromGroup() { RemoveFromGroup(GetGroup(),GetGUID()); }
|
void RemoveFromGroup(RemoveMethod method = GROUP_REMOVEMETHOD_DEFAULT) { RemoveFromGroup(GetGroup(),GetGUID(), method); }
|
||||||
void SendUpdateToOutOfRangeGroupMembers();
|
void SendUpdateToOutOfRangeGroupMembers();
|
||||||
|
|
||||||
void SetInGuild(uint32 GuildId) { SetUInt32Value(PLAYER_GUILDID, GuildId); }
|
void SetInGuild(uint32 GuildId) { SetUInt32Value(PLAYER_GUILDID, GuildId); }
|
||||||
|
|||||||
@@ -387,7 +387,7 @@ void WorldSession::HandleGroupDisbandOpcode(WorldPacket & /*recv_data*/)
|
|||||||
// everything's fine, do it
|
// everything's fine, do it
|
||||||
SendPartyResult(PARTY_OP_LEAVE, GetPlayer()->GetName(), ERR_PARTY_RESULT_OK);
|
SendPartyResult(PARTY_OP_LEAVE, GetPlayer()->GetName(), ERR_PARTY_RESULT_OK);
|
||||||
|
|
||||||
GetPlayer()->RemoveFromGroup();
|
GetPlayer()->RemoveFromGroup(GROUP_REMOVEMETHOD_LEAVE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WorldSession::HandleLootMethodOpcode(WorldPacket & recv_data)
|
void WorldSession::HandleLootMethodOpcode(WorldPacket & recv_data)
|
||||||
|
|||||||
Reference in New Issue
Block a user