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.
70 lines
2.3 KiB
Plaintext
70 lines
2.3 KiB
Plaintext
/*:://////////////////////////////////////////////
|
||
//:: Spell Name Cat’s Grace
|
||
//:: Spell FileName SMP_S_CatsGrace
|
||
//:://////////////////////////////////////////////
|
||
//:: In Game Spell desctiption
|
||
//:://////////////////////////////////////////////
|
||
Cat’s Grace
|
||
Transmutation
|
||
Level: Brd 2, Drd 2, Rgr 2, Sor/Wiz 2
|
||
Components: V, S, M
|
||
Casting Time: 1 standard action
|
||
Range: Touch
|
||
Target: Creature touched
|
||
Duration: 1 min./level
|
||
Saving Throw: Will negates (harmless)
|
||
Spell Resistance: Yes
|
||
|
||
The transmuted creature becomes more graceful, agile, and coordinated. The
|
||
spell grants a +4 enhancement bonus to Dexterity, adding the usual benefits
|
||
to AC, Reflex saves, and other uses of the Dexterity modifier.
|
||
|
||
Material Component: A pinch of cat fur.
|
||
//:://////////////////////////////////////////////
|
||
//:: Spell Effects Applied / Notes
|
||
//:://////////////////////////////////////////////
|
||
+4 to stat, doesn't stack with mass version.
|
||
//:://////////////////////////////////////////////
|
||
//:: Created By: Jasperre
|
||
//::////////////////////////////////////////////*/
|
||
|
||
#include "SMP_INC_SPELLS"
|
||
|
||
void main()
|
||
{
|
||
// Spell hook check.
|
||
if(!SMP_SpellHookCheck()) return;
|
||
|
||
// Declare major variables
|
||
object oCaster = OBJECT_SELF;
|
||
object oTarget = GetSpellTargetObject();
|
||
int nCasterLevel = SMP_GetCasterLevel();
|
||
int nMetaMagic = SMP_GetMetaMagicFeat();
|
||
// Ability to use
|
||
int nAbility = ABILITY_DEXTERITY;
|
||
|
||
// Duration - 1 minute/level
|
||
float fDuration = SMP_GetDuration(SMP_MINUTES, nCasterLevel, nMetaMagic);
|
||
|
||
// Make sure they are not immune to spells
|
||
if(SMP_TotalSpellImmunity(oTarget)) return;
|
||
|
||
// Check if oTarget has better effects already
|
||
if(SMP_GetHasAbilityBonusOfPower(oTarget, nAbility, 4) == 2) return;
|
||
|
||
// Delcare Effects
|
||
effect eAbility = EffectAbilityIncrease(nAbility, 4);
|
||
effect eVis = EffectVisualEffect(VFX_IMP_IMPROVE_ABILITY_SCORE);
|
||
effect eCessate = EffectVisualEffect(VFX_DUR_CESSATE_POSITIVE);
|
||
effect eLink = EffectLinkEffects(eAbility, eCessate);
|
||
|
||
// Signal the spell cast at event
|
||
SMP_SignalSpellCastAt(oTarget, SMP_SPELL_CATS_GRACE, FALSE);
|
||
|
||
// Remove these abilities effects
|
||
SMP_RemoveAnyAbilityBonuses(oTarget, nAbility);
|
||
|
||
// Apply effects and VFX to target
|
||
SMP_ApplyDurationAndVFX(oTarget, eVis, eLink, fDuration);
|
||
}
|