Fixed issue that was preventing certain character builds from replenishing epic spell slots.

Fixed issue that was preventing certain character builds from replenishing epic spell slots.  Updated release archive.
This commit is contained in:
Jaysyn904 committed 2024-09-25 14:04:14 -04:00
1 parent 193278d634
commit 597359e5dc
4 files changed
+14 -3

No files matched your search

Binary file not shown.
+2 -1
View File
@@ -335,7 +335,7 @@ int GetIsEpicWitch(object oPC)
int GetIsEpicWizard(object oPC) int GetIsEpicWizard(object oPC)
{ {
return GetPrCAdjustedCasterLevel(CLASS_TYPE_WIZARD, oPC, FALSE) > 16 return GetPrCAdjustedCasterLevel(CLASS_TYPE_WIZARD, oPC, FALSE) >= 17
&& GetAbilityScore(oPC, ABILITY_INTELLIGENCE) > 18; && GetAbilityScore(oPC, ABILITY_INTELLIGENCE) > 18;
} }
@@ -360,6 +360,7 @@ int GetIsEpicSpellcaster(object oPC)
|| GetIsEpicWitch(oPC) || GetIsEpicWitch(oPC)
|| GetIsEpicWizard(oPC)) || GetIsEpicWizard(oPC))
return TRUE; return TRUE;
return FALSE; return FALSE;
} }
-1
View File
@@ -338,7 +338,6 @@ include\prc_inc_drugfunc.nss \
include\prc_inc_effect.nss \ include\prc_inc_effect.nss \
include\prc_inc_factotum.nss \ include\prc_inc_factotum.nss \
include\prc_inc_fork.nss \ include\prc_inc_fork.nss \
include\prc_inc_function.ncs \
include\prc_inc_function.nss \ include\prc_inc_function.nss \
include\prc_inc_hextor.nss \ include\prc_inc_hextor.nss \
include\prc_inc_itmrstr.nss \ include\prc_inc_itmrstr.nss \
+12 -1
View File
@@ -80,11 +80,22 @@ void RestFinished(object oPC)
AssignCommand(oSlave, ActionRest()); AssignCommand(oSlave, ActionRest());
//ForceRest(oSlave); //ForceRest(oSlave);
if (GetIsEpicSpellcaster(oPC)) { if (GetHasFeat(FEAT_EPIC_SPELLCASTING, oPC))
{
FloatingTextStringOnCreature("*You feel refreshed*", oPC, FALSE); FloatingTextStringOnCreature("*You feel refreshed*", oPC, FALSE);
ReplenishSlots(oPC); ReplenishSlots(oPC);
} }
/* if (GetIsEpicSpellcaster(oPC) == TRUE)
{
FloatingTextStringOnCreature("*You feel refreshed*", oPC, FALSE);
ReplenishSlots(oPC);
}
else
{
if (DEBUG) DoDebug("prc_rest: Not an Epic Spellcaster");
}
*/
if (GetHasFeat(FEAT_SF_CODE,oPC)) if (GetHasFeat(FEAT_SF_CODE,oPC))
DelayCommand(0.1, RemoveSpecificProperty(GetPCSkin(oPC),ITEM_PROPERTY_BONUS_FEAT,IP_CONST_FEAT_SF_CODE)); DelayCommand(0.1, RemoveSpecificProperty(GetPCSkin(oPC),ITEM_PROPERTY_BONUS_FEAT,IP_CONST_FEAT_SF_CODE));