Updated Release Archive. Fixed Mage-killer prereqs. Removed old LETO & ConvoCC related files. Added organized spell scroll store. Fixed Gloura spellbook. Various TLK fixes. Reorganized Repo. Removed invalid user folders. Added DocGen back in.
47 lines
1.1 KiB
Plaintext
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);
|
|
}
|
|
} |