Hey,

Any way to modify the skill Resisting Spells, to it only bumps up your energy resist instead of all types of resistance?
 
I found this in PlayerMobile.cs and I think this is the place to do it, but can't figure out how.


Code:
        public override int GetMinResistance(ResistanceType type)
        {
            if (IsStaff())
            {
                return -100;
            }

            int magicResist = (int)(Skills[SkillName.MagicResist].Value * 10);
            int min = int.MinValue;

            if (magicResist >= 1000)
            {
                min = 40 + ((magicResist - 1000) / 50);
            }
            else if (magicResist >= 400)
            {
                min = (magicResist - 400) / 15;
            }

            return Math.Max(MinPlayerResistance, Math.Min(MaxPlayerResistance, min));
        }

Halp, please?


Update:

OK, got it. Nevermind.
 
Last edited:
Back