Files
HeroesStone_PRC8/_module/nss/slaying_arrow.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

21 lines
722 B
Plaintext

#include "prc_inc_spells"
#include "prc_inc_racial"
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 = MyPRCGetRacialType(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);
}
}