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;
}