Server.Regions.GreenAcres.OnBeginSpellCast C# (CSharp) Méthode

OnBeginSpellCast() public méthode

public OnBeginSpellCast ( Mobile m, ISpell s ) : bool
m Mobile
s ISpell
Résultat bool
		public override bool OnBeginSpellCast( Mobile m, ISpell s )
		{
			if ( ( s is GateTravelSpell || s is RecallSpell || s is MarkSpell ) && m.AccessLevel == AccessLevel.Player )
			{
				m.SendMessage( "You cannot cast that spell here." );
				return false;
			}
			else
			{
				return base.OnBeginSpellCast( m, s );
			}
		}
	}