Horsefly Swamp update
Creatures & encounter tables to support Horsefly swamp expansion.
This commit is contained in:
20
_module/nss/slaying_arrow.nss
Normal file
20
_module/nss/slaying_arrow.nss
Normal file
@@ -0,0 +1,20 @@
|
||||
#include "NW_I0_SPELLS"
|
||||
#include "prc_inc_spells"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oOrigin = OBJECT_SELF ; // Where the spell came from
|
||||
object oTarget = PRCGetSpellTargetObject(); // What the spell is aimed at
|
||||
|
||||
effect eDeath = EffectDeath();
|
||||
effect eVis = EffectVisualEffect(VFX_IMP_DEATH);
|
||||
int nRace = GetRacialType(oTarget);
|
||||
if (( nRace == RACIAL_TYPE_CONSTRUCT ) || ( nRace == RACIAL_TYPE_UNDEAD ))
|
||||
eDeath = SupernaturalEffect(eDeath);
|
||||
|
||||
if ( !PRCMySavingThrow(SAVING_THROW_FORT,oTarget,20,SAVING_THROW_TYPE_DEATH,oOrigin ) )
|
||||
{
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT,eDeath,oTarget);
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT,eVis,oTarget);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user