Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int iMaxLevel = iSpecialistRanks * 6;
- if (iSpellLevel <= iMaxLevel)
- {
- int iSorc = SHS_GetLevelByClass(CLASS_TYPE_SORCERER);
- int iWiz = SHS_GetLevelByClass(CLASS_TYPE_WIZARD);
- int iBard = SHS_GetLevelByClass(CLASS_TYPE_BARD);
- if (iSorc > iLevel | iBard > iLevel)
- {
- iLevel = iSorc;
- iSpellDC = 10 + iSpellLevel + iSpellFocus + GetAbilityModifier(ABILITY_CHARISMA, oCaster) + (iSpecialistRanks - 1);
- iVariance = (iSpecialistRanks - 1) * 5;
- }
- if (iWiz > iLevel)
- {
- iLevel = iWiz;
- iSpellDC = 10 + iSpellLevel + iSpellFocus + GetAbilityModifier(ABILITY_INTELLIGENCE, oCaster) + (iSpecialistRanks - 1);
- iVariance = (iSpecialistRanks - 1) * 5;
- }
- if (iBard > iLevel)
- {
- iLevel = iBard;
- iSpellDC = 10 + iSpellLevel + iSpellFocus + GetAbilityModifier(ABILITY_CHARISMA, oCaster) + (iSpecialistRanks - 1);
- iVariance = (iSpecialistRanks - 1) * 5;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement