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,60 @@
/*
----------------
Diamond Nightmare Blade
tob_dmnd_dmndbld
----------------
04/09/2007 by Tenjac
*/ /** @file
Diamond Nightmare Blade
Diamond Mind (Strike)
Level: Swordsage 8, Warblade 8
Prerequisite: Three Diamond Mind Maneuvers
Initiation Action: 1 Standard Action
Range: Melee Attack
Target: One Creature
With a moment's thought, you instantly perceive the deadliest place to strike your enemy
as you study her defences, note gaps in her armour, and read subtle but important clues
in how she carries herself or maintains her fighting stance.
You make a Concentration check against the target's AC. If you succeed, the target
takes quadruple normal damage. If you fail, you take a -2 penalty on the attack.
*/
#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();
struct maneuver move = EvaluateManeuver(oInitiator, oTarget);
if(move.bCanManeuver)
{
effect eNone;
int nDC = GetDefenderAC(oTarget, oInitiator);
int nAB = -2;
if (GetIsSkillSuccessful(oInitiator, SKILL_CONCENTRATION, nDC))
{
nAB = 0;
SetLocalInt(oTarget, "NightmareBlade", 4);
}
if (GetLocalInt(oInitiator, "SupernalAttack")) nAB += 1;
DelayCommand(0.0, PerformAttack(oTarget, oInitiator, eNone, 0.0, nAB, 0, 0, "Diamond Nightmare Blade Hit", "Diamond Nightmare Blade Miss"));
DelayCommand(1.0, DeleteLocalInt(oTarget, "NightmareBlade"));
}
}