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

33 lines
663 B
Plaintext

#include "prc_inc_spells"
const int SPELL_UR_BLACKLIGHT = 2091;
void main()
{
PRCSetSchool(SPELL_SCHOOL_EVOCATION);
object oTarget = GetExitingObject();
object oCreator = GetAreaOfEffectCreator();
//Search through the valid effects on the target.
effect eAOE = GetFirstEffect(oTarget);
while (GetIsEffectValid(eAOE))
{
int nID = GetEffectSpellId(eAOE);
if( nID== SPELL_UR_BLACKLIGHT)
{
if (GetEffectCreator(eAOE) == oCreator)
RemoveEffect(oTarget, eAOE);
}
//Get next effect on the target
eAOE = GetNextEffect(oTarget);
}
PRCSetSchool();
}