PRC8/nwn/nwnprc/trunk/newspellbook/tob_stdr_bnsplt.nss
Jaysyn904 6ec137a24e Updated AMS marker feats
Updated AMS marker feats.  Removed arcane & divine marker feats.  Updated Dread Necromancer for epic progression. Updated weapon baseitem models.  Updated new weapons for crafting & npc equip.
 Updated prefix.  Updated release archive.
2024-02-11 14:01:05 -05:00

58 lines
1.5 KiB
Plaintext

/*
----------------
Bone Splitting Strike
tob_stdr_bnsplt
----------------
19/08/07 by Stratovarius
*/ /** @file
Bone Splitting Strike
Stone Dragon (Strike)
Level: Crusader 4, Swordsage 4, Warblade 4
Prerequisite: Two Stone Dragon maneuvers
Initiation Action: 1 Standard Action
Range: Melee Attack
Target: One Creature
Your attack slams home with a ferocious crack of shattered bones and parted flesh.
Your target reels backward, still alive but severly crippled.
You make a single attack against an enemy. If this attack his, you do 2 Constitution damage.
*/
#include "tob_inc_move"
#include "tob_movehook"
//#include "prc_alterations"
void TOBAttack(object oTarget, object oInitiator)
{
effect eNone = EffectVisualEffect(PSI_IMP_CONCUSSION_BLAST);
PerformAttack(oTarget, oInitiator, eNone, 0.0, 0, 0, 0, "Bone Splitting Strike Hit", "Bone Splitting Strike Miss");
if (GetLocalInt(oTarget, "PRCCombat_StruckByAttack"))
{
ApplyAbilityDamage(oTarget, ABILITY_CONSTITUTION, 2, DURATION_TYPE_PERMANENT);
}
}
void main()
{
if (!PreManeuverCastCode())
{
// If code within the PreManeuverCastCode (i.e. UMD) reports FALSE, do not run this spell
return;
}
// End of Spell Cast Hook
object oInitiator = OBJECT_SELF;
object oTarget = PRCGetSpellTargetObject();
struct maneuver move = EvaluateManeuver(oInitiator, oTarget);
if(move.bCanManeuver)
{
DelayCommand(0.0, TOBAttack(oTarget, oInitiator));
}
}