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

42 lines
1.3 KiB
Plaintext

//////////////////////////////////////////////////
// Diamond Defense
// tob_dmnd_dmddef.nss
// Tenjac 10/3/07
//////////////////////////////////////////////////
/** @file Diamond Defense
Diamond Mind(Counter)
Level: Swordsage 8, warblade 8
Initiation Action: 1 immediate action
Range: Personal
Target: You
You steel yourself against an opponent's spell, drawing on your focus and training
to overcome its effect.
You can initiate this maneuver any time you would be required to make a saving throw.
You gain a bonus on that save equal to your initiator level. You must use this maneuver
before you roll the saving throw.
*/
#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)
{
SetLocalInt(oInitiator, "PRC_TOB_DIAMOND_DEFENSE", GetInitiatorLevel(oInitiator));
}
}