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.
82 lines
2.3 KiB
Plaintext
82 lines
2.3 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Bigby's Interposing Hand
|
|
//:: [x0_s0_bigby1]
|
|
//:: Copyright (c) 2001 Bioware Corp.
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
Grants -10 to hit to target for 1 round / level
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Brent
|
|
//:: Created On: September 7, 2002
|
|
//:://////////////////////////////////////////////
|
|
//:: VFX Pass By:
|
|
|
|
//:: altered by mr_bumpkin Dec 4, 2003 for prc stuff
|
|
#include "prc_inc_spells"
|
|
|
|
#include "prc_alterations"
|
|
|
|
#include "prc_add_spell_dc"
|
|
|
|
void main()
|
|
{
|
|
DeleteLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR");
|
|
SetLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR", SPELL_SCHOOL_EVOCATION);
|
|
/*
|
|
Spellcast Hook Code
|
|
Added 2003-06-20 by Georg
|
|
If you want to make changes to all spells,
|
|
check x2_inc_spellhook.nss to find out more
|
|
|
|
*/
|
|
|
|
if (!X2PreSpellCastCode())
|
|
{
|
|
// If code within the PreSpellCastHook (i.e. UMD) reports FALSE, do not run this spell
|
|
return;
|
|
}
|
|
|
|
// End of Spell Cast Hook
|
|
|
|
|
|
//Declare major variables
|
|
object oTarget = PRCGetSpellTargetObject();
|
|
int CasterLvl = PRCGetCasterLevel(OBJECT_SELF);
|
|
int nDuration = CasterLvl;
|
|
int nMetaMagic = PRCGetMetaMagicFeat();
|
|
|
|
|
|
if(!GetIsReactionTypeFriendly(oTarget))
|
|
{
|
|
//Fire cast spell at event for the specified target
|
|
SignalEvent(oTarget, EventSpellCastAt(OBJECT_SELF,
|
|
SPELL_BIGBYS_INTERPOSING_HAND,
|
|
TRUE));
|
|
//Check for metamagic extend
|
|
if (CheckMetaMagic(nMetaMagic, METAMAGIC_EXTEND)) //Duration is +100%
|
|
{
|
|
nDuration = nDuration * 2;
|
|
}
|
|
if (!PRCDoResistSpell(OBJECT_SELF, oTarget,CasterLvl+ SPGetPenetr()))
|
|
{
|
|
|
|
effect eAC1 = EffectAttackDecrease(10);
|
|
effect eVis = EffectVisualEffect(VFX_DUR_BIGBYS_INTERPOSING_HAND);
|
|
effect eLink = EffectLinkEffects(eAC1, eVis);
|
|
|
|
|
|
//Apply the TO HIT PENALTIES bonuses and the VFX impact
|
|
SPApplyEffectToObject(DURATION_TYPE_TEMPORARY,
|
|
eLink,
|
|
oTarget,
|
|
RoundsToSeconds(nDuration),TRUE,-1,CasterLvl);
|
|
}
|
|
}
|
|
|
|
|
|
DeleteLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR");
|
|
// Erasing the variable used to store the spell's spell school
|
|
}
|
|
|