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.
40 lines
1.3 KiB
Plaintext
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);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|