protected void SendPartyMessage(int cliloc, int hue = 0x3B2) { if (HasBegun) { foreach (var pm in Region.GetEnumeratedMobiles().OfType <PlayerMobile>()) { pm.SendLocalizedMessage(cliloc, null, hue); } } else { if (PartyLeader == null) { return; } Party p = Party.Get(PartyLeader); if (p != null) { p.Members.ForEach(info => info.Mobile.SendLocalizedMessage(cliloc, null, hue)); } else { PartyLeader.SendLocalizedMessage(cliloc, null, hue); } } }
protected void SendPartyMessage(int cliloc, int hue = 0x3B2) { if (PartyLeader == null) { return; } Party p = Party.Get(PartyLeader); if (p != null) { p.Members.ForEach(info => info.Mobile.SendLocalizedMessage(cliloc, null, hue)); } else { PartyLeader.SendLocalizedMessage(cliloc, null, hue); } }