PoA_PRC8/_module/nss/aodrottingtouch.nss
Jaysyn904 bfbbd2f1ac Major update
Added several new undead models & facelifted overrides for other models.  Added dozens of new undead creatures from Libris Mortis & the monster manuals.  Added CODI Core AI.  Added NESS spawner system.  Added randomized respawning trap system.  Added undead feeding system.  Greatly revamped Catacombs & Halls of the Dead.  Updated nimtools.  Full compile.  Updated release archive.
2024-04-07 01:06:57 -04:00

23 lines
872 B
Plaintext

//#include "prc_inc_racial"
#include "prc_inc_spells"
void main()
{
object oOrigin = OBJECT_SELF ; // Where the spell came from
object oTarget = PRCGetSpellTargetObject(); // What the spell is aimed at
int nRace = MyPRCGetRacialType(oTarget);
if (( nRace == RACIAL_TYPE_CONSTRUCT ) || ( nRace == RACIAL_TYPE_ELEMENTAL )
|| ( nRace == RACIAL_TYPE_UNDEAD ))
return;
effect eVis = EffectVisualEffect(VFX_IMP_DISEASE_S);
effect eVis2 = EffectVisualEffect(VFX_IMP_HEALING_S);
int nDam = d6()+6;
effect eRot = EffectDamage(nDam);
effect eHeal = EffectHeal(5);
ApplyEffectToObject(DURATION_TYPE_INSTANT,eVis,oTarget);
ApplyEffectToObject(DURATION_TYPE_INSTANT,eRot,oTarget);
ApplyEffectToObject(DURATION_TYPE_INSTANT,eVis2,oOrigin);
ApplyEffectToObject(DURATION_TYPE_INSTANT,eHeal,oOrigin);
}