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

@@ -25,10 +25,7 @@ void main()
object oCaster = OBJECT_SELF;
location lTarget = PRCGetSpellTargetLocation();
int CasterLvl = GetInvokerLevel(oCaster, GetInvokingClass());
int nPenetr = CasterLvl + SPGetPenetr();
int nDC = GetInvocationSaveDC(oTarget, oCaster);
if (GetHasFeat(FEAT_ABFOC_DEAFENING_ROAR, oCaster)) nDC += 2;
int nPenetr = CasterLvl + SPGetPenetr();
float fDelay;
effect eDeaf = EffectDeaf();
@@ -42,6 +39,10 @@ void main()
object oTarget = MyFirstObjectInShape(SHAPE_SPELLCONE, FeetToMeters(30.0), lTarget, TRUE, OBJECT_TYPE_CREATURE, GetPosition(oCaster));
while(GetIsObjectValid(oTarget))
{
int nDC = GetInvocationSaveDC(oTarget, oCaster);
if (GetHasFeat(FEAT_ABFOC_DEAFENING_ROAR, oCaster)) nDC += 2;
if(oTarget != oCaster && !GetIsReactionTypeFriendly(oTarget))
{
fDelay = GetDistanceBetween(OBJECT_SELF, oTarget)/20;