mirror of
http://prc.nwn.ee:3000/Jaysyn/PRC8.git
synced 2025-12-20 19:57:14 -05:00
Initial upload.
Adding base PRC 4.19a files to repository.
This commit is contained in:
24
trunk/newspellbook/bnd_vest_tenedrk.nss
Normal file
24
trunk/newspellbook/bnd_vest_tenedrk.nss
Normal file
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* @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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user