PRC8/trunk/newspellbook/tob_dvsp_shldcnt.nss
Jaysyn904 1662218bb4 Initial upload.
Adding base PRC 4.19a files to repository.
2022-10-07 13:51:24 -04:00

47 lines
1.1 KiB
Plaintext

/*
----------------
Shield Counter
tob_dvsp_shldcnt
----------------
27/09/07 by Stratovarius
*/ /** @file
Shield Counter
Devoted Spirit (Counter)
Level: Crusader 2
Prerequisite: 2 Devoted Spirit maneuvers
Initiation Action: 1 Swift Action
Range: Melee Attack
Target: One Creature
As your opponent prepares to make his attack, you bash him with your shield and disrupt his attempt.
You make an immediate shield bash against an enemy at a -2 penalty. If this attack hits, your opponent takes a -20 penalty on his next strike.
*/
#include "tob_inc_move"
#include "tob_movehook"
#include "prc_inc_combmove"
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)
{
DoShieldBash(oInitiator, oTarget, -2, 0, 0, FALSE, FALSE, FALSE, TRUE);
}
}