PRC8/nwn/nwnprc/trunk/newspellbook/shd_noct_disrupt.nss
Jaysyn904 6ec137a24e Updated AMS marker feats
Updated AMS marker feats.  Removed arcane & divine marker feats.  Updated Dread Necromancer for epic progression. Updated weapon baseitem models.  Updated new weapons for crafting & npc equip.
 Updated prefix.  Updated release archive.
2024-02-11 14:01:05 -05:00

25 lines
1011 B
Plaintext
Raw Permalink 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);
}
}