Ejemplo n.º 1
0
        public static int GetAttributeBonus(Mobile m, SAAbsorptionAttribute attr)
        {
            int value = 0;

            switch (attr)
            {
            case SAAbsorptionAttribute.CastingFocus:
                SkillMasterySpell spell = SkillMasterySpell.GetSpellForParty(m, typeof(PerseveranceSpell));

                if (spell != null)
                {
                    value += spell.PropertyBonus2();
                }
                break;
            }

            return(value);
        }