예제 #1
0
        public override Spell GetRandomBuffSpell()
        {
            if (UsesMagery && 0.5 > Utility.RandomDouble())
            {
                return(base.GetRandomBuffSpell());
            }

            int        mana = m_Mobile.Mana;
            BaseWeapon wep  = m_Mobile.Weapon as BaseWeapon;

            if (mana >= 50 && !ArcaneEmpowermentSpell.IsUnderEffects(m_Mobile) && 0.5 >= Utility.RandomDouble())
            {
                return(new ArcaneEmpowermentSpell(m_Mobile, null));
            }
            if (mana >= 32 && wep != null && !ImmolatingWeaponSpell.IsImmolating(m_Mobile, wep))
            {
                return(new ImmolatingWeaponSpell(m_Mobile, null));
            }

            return(null);
        }
예제 #2
0
        public override Spell GetRandomBuffSpell()
        {
            BaseWeapon wep   = m_Mobile.Weapon as BaseWeapon;
            int        skill = (int)m_Mobile.Skills[SkillName.Spellweaving].Value;

            if (!GiftOfRenewalSpell.IsUnderEffects(m_Mobile) && 0.33 >= Utility.RandomDouble())
            {
                return(new GiftOfRenewalSpell(m_Mobile, null));
            }
            else if (skill >= 24 && ArcaneEmpowermentSpell.IsUnderEffects(m_Mobile) && 0.33 >= Utility.RandomDouble())
            {
                return(new ArcaneEmpowermentSpell(m_Mobile, null));
            }
            else if (skill >= 10 && wep != null && !(wep is Fists) && !wep.Immolating && 0.33 >= Utility.RandomDouble())
            {
                return(new ImmolatingWeaponSpell(m_Mobile, null));
            }
            else
            {
                return(base.GetRandomBuffSpell());
            }
        }