2026/05/24 Afternoon Update

Fixed Contingent Resurrection from stealing epic spell slots.
Fixed bonus spell slot itemprops for newspellbook casters. (@lightbeard)
Fixed taking Ability Focus: Eldritch Blast from bricking a first level character.
This commit is contained in:
Jaysyn904
2026-05-24 13:38:28 -04:00
parent cda92e9396
commit 282b336321
3 changed files with 12 additions and 13 deletions

View File

@@ -71,9 +71,12 @@ void main()
void ContingencyResurrect(object oTarget, int nCount, object oCaster) void ContingencyResurrect(object oTarget, int nCount, object oCaster)
{ {
// If the contingency has been turned off, terminate HB // If the contingency has been turned off, terminate HB and restore spellslot
if(!GetLocalInt(oCaster, "nContingentRez")) if(!GetLocalInt(oCaster, "nContingentRez"))
return; {
RestoreSpellSlotForCaster(oCaster);
return;
}
// If the target isn't dead, just toss out a notice that the heartbeat is running // If the target isn't dead, just toss out a notice that the heartbeat is running
if(!GetIsDead(oTarget)) if(!GetIsDead(oTarget))

View File

@@ -490,14 +490,10 @@ int CheckPRCLimitations(object oItem, object oPC = OBJECT_INVALID)
if(bEquip || bUnequip) if(bEquip || bUnequip)
{ {
int nSubType = GetItemPropertySubType(ipTest); int nSubType = GetItemPropertySubType(ipTest);
int nCost = GetItemPropertyCostTable(ipTest); int nCost = GetItemPropertyCostTableValue(ipTest);
SetLocalInt(oPC, string sVar = "PRC_IPRPBonSpellSlots_" + IntToString(nSubType) + "_" + IntToString(nCost);
"PRC_IPRPBonSpellSlots_" + IntToString(nSubType) + "_" + IntToString(nCost),
GetLocalInt(oPC, SetLocalInt(oPC, sVar, GetLocalInt(oPC, sVar) + (bEquip ? 1 : -1));
"PRC_IPRPBonSpellSlots_" + IntToString(nSubType) + "_" + IntToString(nCost)
)
+ (bEquip ? 1 : -1)
);
} }
} }
else if(ipType == ITEM_PROPERTY_WIZARDRY) else if(ipType == ITEM_PROPERTY_WIZARDRY)
@@ -557,4 +553,4 @@ void CheckForPnPHolyAvenger(object oItem)
} }
//:: Test Void //:: Test Void
//void main (){} //void main (){}

View File

@@ -176,7 +176,7 @@ int CheckDivineGifts(object oPC = OBJECT_SELF)
int CheckInvokerAbilityFocus(object oPC = OBJECT_SELF) int CheckInvokerAbilityFocus(object oPC = OBJECT_SELF)
{ {
if (GetHasFeat(FEAT_ABFOC_ELDRITCH_BLAST, oPC) && !GetHasInvocation(INVOKE_ELDRITCH_BLAST, oPC)) return TRUE; if (GetHasFeat(FEAT_ABFOC_ELDRITCH_BLAST, oPC) && !GetHasFeat(FEAT_ELDRITCH_BLAST)) return TRUE;
if (GetHasFeat(FEAT_ABFOC_ELDRITCH_CHAIN, oPC) && !GetHasInvocation(INVOKE_ELDRITCH_CHAIN, oPC)) return TRUE; if (GetHasFeat(FEAT_ABFOC_ELDRITCH_CHAIN, oPC) && !GetHasInvocation(INVOKE_ELDRITCH_CHAIN, oPC)) return TRUE;
if (GetHasFeat(FEAT_ABFOC_ELDRITCH_CONE, oPC) && !GetHasInvocation(INVOKE_ELDRITCH_CONE, oPC)) return TRUE; if (GetHasFeat(FEAT_ABFOC_ELDRITCH_CONE, oPC) && !GetHasInvocation(INVOKE_ELDRITCH_CONE, oPC)) return TRUE;
if (GetHasFeat(FEAT_ABFOC_ELDRITCH_DOOM, oPC) && !GetHasInvocation(INVOKE_ELDRITCH_DOOM, oPC)) return TRUE; if (GetHasFeat(FEAT_ABFOC_ELDRITCH_DOOM, oPC) && !GetHasInvocation(INVOKE_ELDRITCH_DOOM, oPC)) return TRUE;