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

54 lines
1.4 KiB
Plaintext

/*
----------------
Flashing Sun
tob_dw_flshsun.nss
----------------
05/05/07 by Stratovarius
*/ /** @file
Flashing Sun
Desert Wind (Strike)
Level: Swordsage 2
Prerequisite: One Desert Wind maneuver
Initiation Action: 1 Full-Round action
Range: Personal
Target: You
Almost a blur of acceleration, your shining blade flashes
as you attack with impossible speed.
You take a full attack action, getting one additional attack at your highest attack bonus.
All attacks are made at a -2 penalty.
*/
#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)
{
// Extra attack during the round
effect eNone;
int nDamage;
if (GetLocalInt(oInitiator, "DesertFire")) nDamage += d6();
DelayCommand(0.0, PerformAttack(oTarget, oInitiator, eNone, 0.0, -2, nDamage, 0, "Flashing Sun Hit", "Flashing Sun Miss"));
DelayCommand(0.0, PerformAttackRound(oTarget, oInitiator, eNone, 0.0, -2, nDamage, 0, FALSE, "Flashing Sun Hit", "Flashing Sun Miss"));
}
}