Server.Mobiles.BaseCreature.GetAttackSpellRandom C# (CSharp) Method

GetAttackSpellRandom() public method

public GetAttackSpellRandom ( ) : Spell
return Spell
        public Spell GetAttackSpellRandom()
        {
            if ( m_arSpellAttack.Count > 0 )
            {
                Type type = m_arSpellAttack[Utility.Random(m_arSpellAttack.Count)];

                object[] args = {this, null};
                return Activator.CreateInstance( type, args ) as Spell;
            }
            else
            {
                return null;
            }
        }
BaseCreature