OnDecline() public method

public OnDecline ( Server.Mobile from, Server.Mobile leader ) : void
from Server.Mobile
leader Server.Mobile
return void
Exemplo n.º 1
0
        public override void OnDecline(Mobile from, Mobile sentLeader)
        {
            Mobile leader = from.Party as Mobile;

            from.Party = null;

            Party p = Party.Get(leader);

            if (leader == null || p == null || !p.Candidates.Contains(from))
            {
                from.SendLocalizedMessage(3000222);                 // No one has invited you to be in a party.
            }
            else
            {
                p.OnDecline(from, leader);
            }
        }