PRC8/nwn/trunk/newspellbook/shd_noct_disrupt.nss
Jaysyn904 5914ed2ab5 Updated Release Archive
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.
2023-08-22 10:00:21 -04:00

25 lines
1011 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
01/03/19 by Stratovarius
Eldritch Disruption
At 6th level, you can use a standard action to disrupt the magical energies of a single target within 60 feet.
That target must make a Will saving throw (DC 10 + your noctumancer level + your Cha modifier) or take a 4 penalty to its caster level for any mysteries or spells it casts for 1 minute.
You can use eldritch disruption three times per day
*/
#include "shd_inc_shdfunc"
#include "shd_mysthook"
void main()
{
object oShadow = OBJECT_SELF;
object oTarget = PRCGetSpellTargetObject();
int nDC = 10 + GetLevelByClass(CLASS_TYPE_NOCTUMANCER) + GetAbilityModifier(ABILITY_CHARISMA, oShadow);
if (!PRCMySavingThrow(SAVING_THROW_WILL, oTarget, nDC, SAVING_THROW_TYPE_NONE))
{
SetLocalInt(oTarget, "EldritchDisrupt", TRUE);
DelayCommand(60.0, DeleteLocalInt(oTarget, "EldritchDisrupt"));
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(PSI_IMP_CONCUSSION_BLAST), oTarget);
}
}