Files
PRC8/nwn/nwnprc/trunk/psionics/psi_fell_shot.nss
Jaysyn904 8772b32d43 2026/01/26 Update
Added Improved Critical (touch attack).
Added Improved Critical (ray).
Added Weapon Focus (touch attack).
Added Epic Weapon Focus (touch attack).
Fell Shot was resolving as a melee touch attack instead of a ranged weapon touch attack.
Cleaned up ungated debug in prc_inc_nat_hb.
2026-01-26 12:36:54 -05:00

39 lines
1.2 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Fell Shot spellscript
//:: psi_fell_shot
//:://////////////////////////////////////////////
/*
Expends psionic focus to resolve the first
attack of the round as a touch attack.
Can only be used while wielding a ranged weapon.
*/
//:://////////////////////////////////////////////
//:: Created By: Ornedan
//:: Created On: 24.03.2005
//:://////////////////////////////////////////////
#include "prc_inc_combat"
#include "psi_inc_psifunc"
void main()
{
object oPC = OBJECT_SELF;
object oTarget = PRCGetSpellTargetObject();
effect eDummy;
if(!UsePsionicFocus(oPC)){
SendMessageToPC(oPC, "You must be psionically focused to use this feat");
return;
}
if(GetItemInSlot(INVENTORY_SLOT_RIGHTHAND) == OBJECT_INVALID ||
!GetWeaponRanged(GetItemInSlot(INVENTORY_SLOT_RIGHTHAND)))
{
SendMessageToPC(oPC, "You must be wielding a ranged weapon to use this feat");
return;
}
//PerformAttackRound(oTarget, oPC, eDummy, 0.0, 0, 0, 0, FALSE, "Fell Shot Hit", "Fell Shot Miss", FALSE, TRUE);
PerformAttackRound(oTarget, oPC, eDummy, 0.0, 0, 0, 0, FALSE, "Fell Shot Hit", "Fell Shot Miss", FALSE, TOUCH_ATTACK_RANGED);
}