Further file organization

Further file organization
This commit is contained in:
Jaysyn904
2023-08-23 22:11:00 -04:00
parent 3062876237
commit d87fe14826
22364 changed files with 0 additions and 3253 deletions

View File

@@ -0,0 +1,61 @@
/*
----------------
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);
}
}