Further file organization

Further file organization
This commit is contained in:
Jaysyn904
2023-08-23 22:11:00 -04:00
parent 3062876237
commit d87fe14826
22364 changed files with 0 additions and 3253 deletions

View File

@@ -0,0 +1,38 @@
/*:://////////////////////////////////////////////
//:: 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);
}