PRC8/nwn/trunk/spells/sp_sickn_evilA.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

40 lines
1.3 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Sicken Evil: On Enter
//:: sp_sickn_evilA.nss
//::
//:://////////////////////////////////////////////
/*
*/
//:://////////////////////////////////////////////
//:: Created By: Tenjac
//:: Created On: 6/30/06
//:://////////////////////////////////////////////
#include "prc_inc_spells"
void main()
{
object oTarget = GetEnteringObject();
object oPC = GetAreaOfEffectCreator();
int nCasterLvl = PRCGetCasterLevel(oPC);
//if valid and not caster
if(GetIsObjectValid(oTarget) && oTarget != oPC)
{
if(GetAlignmentGoodEvil(oTarget) == ALIGNMENT_EVIL)
{
//Spell resistance
if(!PRCDoResistSpell(oPC, oTarget, nCasterLvl + SPGetPenetr()))
{
SPApplyEffectToObject(DURATION_TYPE_PERMANENT, EffectSickened(), oTarget);
SPApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_SLOW), oTarget);
}
}
}
}