PRC8/nwn/trunk/newspellbook/bnd_vest_tenedrk.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

24 lines
719 B
Plaintext

/**
* @file
* Deeper Darkness for Tenebrous
*
*/
#include "bnd_inc_bndfunc"
void main()
{
object oBinder = OBJECT_SELF;
if (GetHasSpellEffect(GetSpellId(), oBinder))
{
PRCRemoveSpellEffects(GetSpellId(), oBinder, oBinder);
GZPRCRemoveSpellEffects(GetSpellId(), oBinder, FALSE);
}
else
{
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectAreaOfEffect(AOE_PER_DARKNESS), PRCGetSpellTargetObject(), 60.0 * GetBinderLevel(oBinder, VESTIGE_TENEBROUS));
object oAoE = GetAreaOfEffectObject(GetSpellTargetLocation(), "VFX_PER_DARKNESS");
SetAllAoEInts(SPELL_DARKNESS, oAoE, GetBinderDC(oBinder, VESTIGE_TENEBROUS), 0, GetBinderLevel(oBinder, VESTIGE_TENEBROUS));
}
}