PRC8_fork/trunk/smp/phs_s_invispurga.nss
Jaysyn904 1662218bb4 Initial upload.
Adding base PRC 4.19a files to repository.
2022-10-07 13:51:24 -04:00

39 lines
1.3 KiB
Plaintext

/*:://////////////////////////////////////////////
//:: Spell Name Invisibility Purge: On Enter
//:: Spell FileName PHS_S_InvisPurgA
//:://////////////////////////////////////////////
//:: Spell Effects Applied / Notes
//:://////////////////////////////////////////////
I altered it so people wouldn't be put under a false impression.
Anyones invsibility is removed!
The AOE changes per 2 caster levels - not per 1, this makes it more
manageable for NwN, and is still a huge radius as the spell progresses
in levels!
On Enter:
- Remove ANY invisiblity effects made by magic.
//:://////////////////////////////////////////////
//:: Created By: Jasperre
//::////////////////////////////////////////////*/
#include "PHS_INC_SPELLS"
void main()
{
// Declare major variables
object oCaster = GetAreaOfEffectCreator();
object oTarget = GetEnteringObject();
// Make sure they are not immune to spells
if(PHS_TotalSpellImmunity(oTarget)) return;
// Fire cast spell at event for the specified target
PHS_SignalSpellCastAt(oTarget, PHS_SPELL_INVISIBILITY_PURGE, GetIsEnemy(oTarget, oCaster));
// Remove all invisibility effects
PHS_RemoveSpecificEffect(EFFECT_TYPE_INVISIBILITY, oTarget);
PHS_RemoveSpecificEffect(EFFECT_TYPE_IMPROVEDINVISIBILITY, oTarget);
}