PRC8/nwn/trunk/newspellbook/moi_ft_psyblade.nss
Jaysyn904 5914ed2ab5 Updated Release Archive
Updated Release Archive.  Fixed Mage-killer prereqs.  Removed old LETO & ConvoCC related files.  Added organized spell scroll store.  Fixed Gloura spellbook. Various TLK fixes.  Reorganized Repo.  Removed invalid user folders. Added DocGen back in.
2023-08-22 10:00:21 -04:00

44 lines
1.5 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Psycarnum Blade spellscript
//:: moi_ft_psyblade
//:://////////////////////////////////////////////
/*
You can expend your psionic focus when making an attack
with your mind blade to gain an insight bonus on the
damage roll equal to 1d6 per point of invested essentia.
You must decide whether or not to use this feat prior to
making the attack roll. If your attack misses, you still
expend your psionic focus.
*/
//:://////////////////////////////////////////////
//:: Created By: Stratovarius
//:: Created On: 20.01.2020
//:://////////////////////////////////////////////
#include "prc_inc_combat"
#include "psi_inc_soulkn"
#include "psi_inc_psifunc"
#include "moi_inc_moifunc"
void main()
{
object oMeldshaper = OBJECT_SELF;
object oTarget = PRCGetSpellTargetObject();
effect eDummy;
// Make sure they are wielding a mindblade
if(!GetIsMindblade(GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oMeldshaper)))
{
SendMessageToPCByStrRef(oMeldshaper, 16824509);
return;
}
if(!UsePsionicFocus(oMeldshaper))
{
SendMessageToPC(oMeldshaper, "You must be psionically focused to use this feat");
return;
}
int nDamage = d6(GetEssentiaInvestedFeat(oMeldshaper, FEAT_PSYCARNUM_BLADE));
PerformAttackRound(oTarget, oMeldshaper, eDummy, 0.0, 0, nDamage, DAMAGE_TYPE_PIERCING, FALSE, "Psycarnum Blade Hit", "Psycarnum Blade Miss");
}