PRC8/nwn/nwnprc/trunk/newspellbook/tob_tgcw_flshrip.nss
Jaysyn904 8a034b0da0 2025/05/25 Update
Updated all ToB maneuvers with saves to respect Blade Meditation.
Added HasBladeMeditationForDiscipline()
Expanded Witchborn Binder for epic progression.
Fixed a few bugs around Vile Martial strike.
Echo Spell shouldn't target self or items.
Muckdweller should have a -6 STR.
Added new Vile Martial feats to GetVileFeats().
Grappling something now removes invisibility.
Started on Power Attack NUI.
Starmantle shouldn't stack.
Factotum & Shadow Thief of Amn require UMD checks for scroll casting.
2025-05-25 16:16:36 -04:00

75 lines
2.1 KiB
Plaintext

/*
----------------
Flesh Ripper
tob_tgcw_flshrip
----------------
18/08/07 by Stratovarius
*/ /** @file
Flesh Ripper
Tiger Claw (Strike)
Level: Swordsage 3, Warblade 3
Initiation Action: 1 Standard Action
Range: Melee Attack
Target: One Creature
Duration: 1 round
Save: Fortitude Partial; see text
With a mixture of careful precision and animal savagery, you tear into a foe to produce jagged wounds that overwhelm him with pain.
If the target fails a Fortitude save vs 13 + Strength modifier, he takes a -4 penalty to attacks and AC.
*/
#include "tob_inc_move"
#include "tob_movehook"
#include "prc_inc_combmove"
void TOBAttack(object oTarget, object oInitiator)
{
effect eNone = EffectVisualEffect(PSI_IMP_CONCUSSION_BLAST);
int nBonus = TOBSituationalAttackBonuses(oInitiator, DISCIPLINE_TIGER_CLAW);
int nDC = 13 + GetAbilityModifier(ABILITY_STRENGTH, oInitiator);
int nBladeMed = HasBladeMeditationForDiscipline(oInitiator, GetDisciplineByManeuver(PRCGetSpellId()));;
if (nBladeMed)
{
nDC += 1;
}
PerformAttack(oTarget, oInitiator, eNone, 0.0, nBonus, 0, 0, "Flesh Ripper Hit", "Flesh Ripper Miss");
if (GetLocalInt(oTarget, "PRCCombat_StruckByAttack") && !GetIsImmune(oTarget, IMMUNITY_TYPE_CRITICAL_HIT))
{
// Saving Throw
if (!PRCMySavingThrow(SAVING_THROW_FORT, oTarget, nDC))
{
effect eLink = EffectLinkEffects(EffectAttackDecrease(4), EffectACDecrease(4));
eLink = ExtraordinaryEffect(eLink);
SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oTarget, 6.0);
}
}
}
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));
DelayCommand(0.1, TigerBlooded(oInitiator, oTarget));
}
}