Server.Mobiles.MageAI.GetRandomCurseSpell C# (CSharp) Méthode

GetRandomCurseSpell() public méthode

public GetRandomCurseSpell ( ) : Spell
Résultat Server.Spells.Spell
		public virtual Spell GetRandomCurseSpell()
		{
			if( m_Mobile.Skills[ SkillName.Magery ].Value >= 40.0 && Utility.Random( 4 ) == 0 )
				return new CurseSpell( m_Mobile, null );

			switch( Utility.Random( 3 ) )
			{
				case 0: return new WeakenSpell( m_Mobile, null );
				case 1: return new ClumsySpell( m_Mobile, null );
				default: return new FeeblemindSpell( m_Mobile, null );
			}
		}