Server.Items.SlayerEntry.Slays C# (CSharp) Method

Slays() public method

public Slays ( Mobile m ) : bool
m Mobile
return bool
		public bool Slays( Mobile m )
		{
			Type t = m.GetType();

			for ( int i = 0; i < m_Types.Length; ++i )
			{
				if ( m_Types[i].IsAssignableFrom( t ) )
					return true;
			}

			return false;
		}
	}

Usage Example

Ejemplo n.º 1
0
        private static bool CheckSlays(SlayerName slayer, Mobile target)
        {
            if (slayer == SlayerName.None)
            {
                return(false);
            }

            SlayerEntry entry = SlayerGroup.GetEntryByName(slayer);

            return(entry != null && entry.Slays(target));
        }
All Usage Examples Of Server.Items.SlayerEntry::Slays