Finished Invocations for Ability focus

Finished the rest of the Invocations for Ability focus.
This commit is contained in:
Jaysyn904
2025-05-13 23:36:44 -04:00
parent 2caeb8941c
commit 3a362d25be
8 changed files with 36 additions and 10 deletions

View File

@@ -27,6 +27,10 @@ void main()
int CasterLvl = GetInvokerLevel(oCaster, GetInvokingClass());
int nPenetr = CasterLvl + SPGetPenetr();
int iAttackRoll = PRCDoMeleeTouchAttack(oTarget);
int nDC = GetInvocationSaveDC(oTarget, oCaster);
if (GetHasFeat(FEAT_ABFOC_CURSE_OF_DESPAIR, OBJECT_SELF)) nDC += 2;
int dec = 2 * iAttackRoll;//4 on Critical Hit
effect eVis = EffectVisualEffect(VFX_IMP_REDUCE_ABILITY_SCORE);
effect eCurse = EffectCurse(dec, dec, dec, dec, dec, dec);
@@ -42,8 +46,8 @@ void main()
//Make SR Check
if (!PRCDoResistSpell(oCaster, oTarget, nPenetr))
{
//Make Will Save
if (!/*Will Save*/ PRCMySavingThrow(SAVING_THROW_WILL, oTarget, GetInvocationSaveDC(oTarget, oCaster)))
//Make Will Save
if (!/*Will Save*/ PRCMySavingThrow(SAVING_THROW_WILL, oTarget, nDC))
{
//Apply Effect and VFX
SPApplyEffectToObject(DURATION_TYPE_PERMANENT, eCurse, oTarget, 0.0f, TRUE, -1, CasterLvl);