Psionic shot should work with Eldritch Blast

Psionic shot should work with Eldritch Blast.  Ranger / TW Rend & OSTWF tweak  Fixed PTWF access in Tempest feat list.  Updated release archive.
This commit is contained in:
Jaysyn904
2024-09-14 23:56:04 -04:00
parent c330f061ca
commit 094b0c6b5a
10 changed files with 291 additions and 216 deletions

View File

@@ -8,6 +8,7 @@
#include "inv_inc_invfunc"
#include "inv_invokehook"
#include "inv_inc_blast"
#include "psi_inc_core"
//internal function for delayed damage
void DoDelayedBlast(object oTarget, int nDamageType = DAMAGE_TYPE_FIRE, int nVFX = VFX_IMP_FLAME_M)
@@ -92,6 +93,33 @@ void main()
if(GetHasSpellEffect(INVOKE_WILD_FRENZY, oPC))
nDam += 2;
//:: RAW, Eldritch Blast is considered a ranged attack & should work with the Psionic Shot chain -Jaysyn.
if(GetIsPsionicallyFocused())
{
if (GetHasFeat(FEAT_PSIONIC_SHOT))
{
nDam += d6(2);
}
if (GetHasFeat(FEAT_GREATER_PSIONIC_SHOT))
{
nDam += d6(2);
}
LosePsionicFocus();
}
/* if(GetIsPsionicallyFocused() && GetHasFeat(FEAT_GREATER_PSIONIC_SHOT))
{
nDam += d6(4);
LosePsionicFocus();
}
if(GetIsPsionicallyFocused() && GetHasFeat(FEAT_PSIONIC_SHOT))
{
nDam += d6(2);
LosePsionicFocus();
} */
int nAtkBns = GetAttackBonus(oTarget, oPC, OBJECT_INVALID, FALSE, TOUCH_ATTACK_RANGED_SPELL);
if(GetHasFeat(FEAT_ELDRITCH_SCULPTOR))
nAtkBns += 2;