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

59 lines
1.7 KiB
Plaintext

/*
----------------
Stonefoot Stance
tob_stdr_stnftst
----------------
23/03/07 by Stratovarius
*/ /** @file
Stonefoot Stance
Stone Dragon (Stance)
Level: Crusader 1, Swordsage 1, Warblade 1
Initiation Action: 1 Swift Action
Range: Personal
Target: You
Duration: Stance
You crouch and set your feet flat on the ground, drawing
the resilience of the earth into your body.
You gain a +2 bonus on Strength checks, and a +2 AC bonus against creatures larger than you.
This stance ends if you move more than 5 feet for any reason.
*/
#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 eLink = VersusSizeEffect(oInitiator, EffectACIncrease(2), 1);
eLink = EffectLinkEffects(eLink, EffectVisualEffect(VFX_DUR_ROOTED_TO_SPOT));
if (GetHasDefensiveStance(oInitiator, DISCIPLINE_STONE_DRAGON))
eLink = EffectLinkEffects(eLink, EffectSavingThrowIncrease(SAVING_THROW_ALL, 2, SAVING_THROW_TYPE_ALL));
eLink = ExtraordinaryEffect(eLink);
InitiatorMovementCheck(oInitiator, move.nMoveId);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eLink, oTarget);
}
if (DEBUG && GetHasSpellEffect(MOVE_SD_STONEFOOT_STANCE, oInitiator)) DoDebug("tob_stdr_stnftst: GetHasSpellEffect: TRUE");
}