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.
59 lines
1.6 KiB
Plaintext
59 lines
1.6 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Name Unnerving Gaze
|
|
//:: FileName sp_unnerv_gaze.nss
|
|
//:://////////////////////////////////////////////
|
|
/**@file Unnerving Gaze
|
|
Illusion (Phantasm)
|
|
Level: Demonologist 1, Mortal Hunter 1, Sor/Wiz 0
|
|
Components: V, S
|
|
Casting Time: 1 action
|
|
Range: Close (25 ft. + 5 ft./2 levels)
|
|
Target: One humanoid creature
|
|
Duration: 1 round/level
|
|
Saving Throw: Will negates
|
|
Spell Resistance: Yes
|
|
|
|
The caster makes his face resemble one of the
|
|
opponent's departed loved ones or bitter enemies.
|
|
The subject takes a -1 morale penalty on attack
|
|
rolls for the duration of the spell.
|
|
|
|
Author: Tenjac
|
|
Created: 5/12/06
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:://////////////////////////////////////////////
|
|
|
|
#include "prc_inc_spells"
|
|
#include "prc_add_spell_dc"
|
|
void main()
|
|
{
|
|
object oPC = OBJECT_SELF;
|
|
object oTarget = PRCGetSpellTargetObject();
|
|
int nCasterLvl = PRCGetCasterLevel(oPC);
|
|
int nDC = PRCGetSaveDC(oTarget, oPC);
|
|
int nMetaMagic = PRCGetMetaMagicFeat();
|
|
float fDur = RoundsToSeconds(nCasterLvl);
|
|
|
|
//spellhook
|
|
if(!X2PreSpellCastCode()) return;
|
|
|
|
PRCSetSchool(SPELL_SCHOOL_ILLUSION);
|
|
|
|
if(nMetaMagic & METAMAGIC_EXTEND)
|
|
{
|
|
fDur += fDur;
|
|
}
|
|
|
|
if(!PRCDoResistSpell(oPC, oTarget, nCasterLvl + SPGetPenetr()))
|
|
{
|
|
//Will save
|
|
if(!PRCMySavingThrow(SAVING_THROW_WILL, oTarget, nDC, SAVING_THROW_TYPE_MIND_SPELLS))
|
|
{
|
|
SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectAttackDecrease(1, ATTACK_BONUS_MISC), oTarget, fDur);
|
|
}
|
|
}
|
|
|
|
PRCSetSchool();
|
|
}
|