PRC8/nwn/nwnprc/trunk/newspellbook/tob_dvsp_dvnsrg.nss
Jaysyn904 8a034b0da0 2025/05/25 Update
Updated all ToB maneuvers with saves to respect Blade Meditation.
Added HasBladeMeditationForDiscipline()
Expanded Witchborn Binder for epic progression.
Fixed a few bugs around Vile Martial strike.
Echo Spell shouldn't target self or items.
Muckdweller should have a -6 STR.
Added new Vile Martial feats to GetVileFeats().
Grappling something now removes invisibility.
Started on Power Attack NUI.
Starmantle shouldn't stack.
Factotum & Shadow Thief of Amn require UMD checks for scroll casting.
2025-05-25 16:16:36 -04:00

51 lines
1.4 KiB
Plaintext

/*
----------------
Divine Surge
tob_dvsp_dvnsrg
----------------
05/06/07 by Stratovarius
*/ /** @file
Divine Surge
Devoted Spirit (Strike)
Level: Crusader 4
Prerequisite: One Devoted Spirit Maneuver
Initiation Action: 1 Standard Action
Range: Melee Attack
Target: One Creature
Your body shakes and spasms as unfettered divine energy courses through it.
This power sparks off your weapon and courses into your foe,
devastating your enemy but leaving you drained.
You make a single attack against an enemy. If this attack his, you deal 8d8 extra damage.
*/
#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 = EffectVisualEffect(PSI_IMP_CONCUSSION_BLAST);
object oWeap = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oInitiator);
DelayCommand(0.0, PerformAttack(oTarget, oInitiator, eNone, 0.0, 0, d8(8), GetWeaponDamageType(oWeap), "Divine Surge Hit", "Divine Surge Miss"));
}
}