More refactoring of code.
This commit is contained in:
@@ -95,11 +95,11 @@ namespace Game
|
||||
}
|
||||
|
||||
Group group = GetPlayer().GetGroup();
|
||||
if (group && group.isBGGroup())
|
||||
if (group && group.IsBGGroup())
|
||||
group = GetPlayer().GetOriginalGroup();
|
||||
|
||||
Group group2 = player.GetGroup();
|
||||
if (group2 && group2.isBGGroup())
|
||||
if (group2 && group2.IsBGGroup())
|
||||
group2 = player.GetOriginalGroup();
|
||||
|
||||
PartyInvite partyInvite;
|
||||
@@ -421,7 +421,7 @@ namespace Game
|
||||
group.SendTargetIconList(this, packet.PartyIndex);
|
||||
else // target icon update
|
||||
{
|
||||
if (group.isRaidGroup() && !group.IsLeader(GetPlayer().GetGUID()) && !group.IsAssistant(GetPlayer().GetGUID()))
|
||||
if (group.IsRaidGroup() && !group.IsLeader(GetPlayer().GetGUID()) && !group.IsAssistant(GetPlayer().GetGUID()))
|
||||
return;
|
||||
|
||||
if (packet.Target.IsPlayer())
|
||||
@@ -645,7 +645,7 @@ namespace Game
|
||||
if (!group)
|
||||
return;
|
||||
|
||||
if (group.isRaidGroup() && !group.IsLeader(GetPlayer().GetGUID()) && !group.IsAssistant(GetPlayer().GetGUID()))
|
||||
if (group.IsRaidGroup() && !group.IsLeader(GetPlayer().GetGUID()) && !group.IsAssistant(GetPlayer().GetGUID()))
|
||||
return;
|
||||
|
||||
group.DeleteRaidMarker(packet.MarkerId);
|
||||
|
||||
Reference in New Issue
Block a user