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

61 lines
1.6 KiB
Plaintext

/*
----------------
Defensive Insight
tob_etbl_defins.nss
----------------
11 MAR 09 by GC
*/ /** @file
Defensive Strike
Your blade guide assesses your enemies, seeking out weak
points in their armor and offfering you advice on where
and how to strike. Your guide grants you advice that can
render even the most daunting foe impotent.
For the rest of yuor turn, you automatically overcome
your opponent's damage reduction, if any.
You can use this ability only while you have
access to your blade guide.
*/
#include "tob_inc_move"
#include "tob_movehook"
////#include "prc_alterations"
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();
// Blade guide check
if(GetLocalInt(oInitiator, "ETBL_BladeGuideDead"))
{
FloatingTextStringOnCreature("*Cannot use ability without blade guide*", oInitiator, FALSE);
return;
}
if(!TakeSwiftAction(oInitiator)) return;
int nInt = GetAbilityModifier(ABILITY_INTELLIGENCE, oInitiator);
if(nInt <= 0) return;
struct maneuver move = EvaluateManeuver(oInitiator, oTarget, TRUE);
if(move.bCanManeuver)
{
effect eLink = EffectAttackDecrease(nInt);
eLink = ExtraordinaryEffect(eLink);
SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oTarget, 6.0);
}
}