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));
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.