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

53 lines
1.4 KiB
Plaintext

/*
----------------
Mind Over Body
tob_dmnd_mndbdy.nss
----------------
15/07/07 by Stratovarius
*/ /** @file
Mind Over Body
Diamond Mind (Counter)
Level: Swordsage 3, Warblade 3
Initiation Action: 1 Swift Action
Range: Personal.
Target: You.
Duration: 1 Round
Your training and mental toughness allow you to use your focus to overcome
physical threats. By focusing your mind, you ignore the effects of a deadly
poison or a debilitating sickness.
You replace the next Fortitude save you make this round with a Concentration check.
The DC of the check is the same as that of the spell.
A result of 1 on the roll is not an automatic failure.
*/
#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)
{
SPApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SPELL_FAIL_HEA), oTarget);
SetLocalInt(oTarget, "MindOverBody", TRUE);
DelayCommand(6.0, DeleteLocalInt(oTarget, "MindOverBody"));
}
}