Server.Spells.Second.ProtectionSpell.CheckCast C# (CSharp) Method

CheckCast() public method

public CheckCast ( ) : bool
return bool
		public override bool CheckCast()
		{
			if ( m_Registry.ContainsKey( Caster ) )
			{
				Caster.SendLocalizedMessage( 1005559 ); // This spell is already in effect.
				return false;
			}
			else if ( !Caster.CanBeginAction( typeof( DefensiveSpell ) ) )
			{
				Caster.SendLocalizedMessage( 1005385 ); // The spell will not adhere to you at this time.
				return false;
			}

			return true;
		}