PRC8/nwn/nwnprc/trunk/newspellbook/tob_tgcw_dncmon.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

64 lines
2.4 KiB
Plaintext

///////////////////////////////////////////////////
// Dancing Mongoose
// tob_tgcw_dncmon.nss
///////////////////////////////////////////////////
/** @file Dancing Mongoose
Tiger Claw(Boost)
Level: Swordsage 5, warblade 5
Prerequisite: Two Tiger Claw maneuvers
Initiation Action: 1 swift action
Range: Personal
Target: You
Duration: 1 turn
You sing your weapons about you in a blur of speed, making a series of
devastating attacks in the space of a single breath.
You make a flurry of deadly attacks. After initiating this boost, you
can make one additional attack with each weapon you wield (to a maximim of
two extra attacks if you wield two or more weapons). These extra attacks
are made at your highest attack bonus for each of your repective weapons.
All of these attacks mus be directed against the same opponent.
*/
//////////////////////////////////////////////////////
// Tenjac 10/4/07
///////////////////////////////////////////////////////
#include "tob_inc_move"
#include "tob_movehook"
void main()
{
if (!PreManeuverCastCode())
{
// If code within the PreManeuverCastCode (i.e. UMD) reports FALSE, do not run this spell
return;
}
object oInitiator = OBJECT_SELF;
object oTarget = PRCGetSpellTargetObject();
struct maneuver move = EvaluateManeuver(oInitiator, oTarget);
effect eNone;
if(move.bCanManeuver)
{
object oItem = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oInitiator);
object oItem2 = GetItemInSlot(INVENTORY_SLOT_LEFTHAND, oInitiator);
effect eNone;
int nBonus = TOBSituationalAttackBonuses(oInitiator, DISCIPLINE_TIGER_CLAW);
if (IPGetIsMeleeWeapon(oItem))
{
// Perform first bonus attack, overriding weapon just to make sure
DelayCommand(0.0, PerformAttack(oTarget, oInitiator, eNone, 0.0, nBonus, 0, 0, "Dancing Mongoose Hit", "Dancing Mongoose Miss", FALSE, oItem));
if (IPGetIsMeleeWeapon(oItem2))
{
// Perform second bonus attack, overriding weapon just to make sure
DelayCommand(0.0, PerformAttack(oTarget, oInitiator, eNone, 0.0, nBonus, 0, 0, "Dancing Mongoose Hit", "Dancing Mongoose Miss", FALSE, oItem2));
}
}
else
FloatingTextStringOnCreature("You must have a melee weapon equipped to use this maneuver", oInitiator, FALSE);
}
}