Added DC cap switch to prevent roll-over.

Added DC cap switch to prevent roll-over.
This commit is contained in:
Jaysyn904
2024-03-29 23:46:34 -04:00
parent 0dc15c882a
commit 301424ecfd
9 changed files with 37 additions and 56 deletions

View File

@@ -634,6 +634,14 @@ int PRCGetSpellSaveDC(int nSpellID = -1, int nSchool = -1, object oCaster = OBJE
}
}
if (GetPRCSwitch(PRC_ACTIVATE_MAX_SPELL_DC_CAP))
{
if (nDC > GetPRCSwitch(PRC_SET_MAX_SPELL_DC_CAP))
{
nDC = GetPRCSwitch(PRC_SET_MAX_SPELL_DC_CAP);
}
}
return nDC;
}