PRC8/nwn/nwnprc/trunk/newspellbook/tob_irnh_dsrmstk.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.4 KiB
Plaintext

/*
----------------
Disarming Strike
tob_irnh_dsrmstk
----------------
06/06/07 by Stratovarius
*/ /** @file
Disarming Strike
Iron Heart (Strike)
Level: Warblade 2
Initiation Action: 1 Standard Action
Range: Melee Attack
Target: One Creatures
You chop at your foe's hand, causing a grievous injury
and forcing him to drop his weapon.
You make a single melee attack. If it is successful, you attempt
to disarm the target. This will not work against creatures that cannot be disarmed.
*/
#include "tob_inc_move"
#include "tob_movehook"
#include "prc_inc_combmove"
void TOBAttack(object oTarget, object oInitiator)
{
effect eNone;
object oWeap = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oInitiator);
PerformAttack(oTarget, oInitiator, eNone, 0.0, 0, 0, 0,"Disarming Strike Hit", "Disarming Strike Miss");
if (GetLocalInt(oTarget, "PRCCombat_StruckByAttack"))
DoDisarm(oInitiator, oTarget, 0, FALSE, FALSE);
}
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));
}
}