Server.Spells.SpellHelper.GetGuildFor C# (CSharp) Méthode

GetGuildFor() public static méthode

public static GetGuildFor ( Mobile m ) : Guild
m Mobile
Résultat Server.Guilds.Guild
		public static Guild GetGuildFor( Mobile m )
		{
			Guild g = m.Guild as Guild;

			if( g == null && m is BaseCreature )
			{
				BaseCreature c = (BaseCreature)m;
				m = c.ControlMaster;

				if( m != null )
					g = m.Guild as Guild;

				if( g == null )
				{
					m = c.SummonMaster;

					if( m != null )
						g = m.Guild as Guild;
				}
			}

			return g;
		}