mirror of
http://prc.nwn.ee:3000/Jaysyn/PRC8.git
synced 2025-12-17 01:57:15 -05:00
Added DC cap switch to prevent roll-over.
Added DC cap switch to prevent roll-over.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user