public override Spell GetRandomHealingSpell() { if (!GiftOfRenewalSpell.UnderEffect(m_Mobile) && !GiftOfRenewalSpell.m_Table2.Contains(m_Mobile)) { return(new GiftOfRenewalSpell(m_Mobile, null)); } return(base.GetRandomHealingSpell()); }
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()); } }