Further file organization
Further file organization
This commit is contained in:
34
nwn/nwnprc/trunk/newspellbook/inv_wallgloomb.nss
Normal file
34
nwn/nwnprc/trunk/newspellbook/inv_wallgloomb.nss
Normal file
@@ -0,0 +1,34 @@
|
||||
|
||||
|
||||
#include "inv_inc_invfunc"
|
||||
#include "inv_invokehook"
|
||||
#include "prc_alterations"
|
||||
|
||||
void main()
|
||||
{
|
||||
//Declare major variables
|
||||
//Get the object that is exiting the AOE
|
||||
object oTarget = GetExitingObject();
|
||||
int bValid = FALSE;
|
||||
effect eAOE;
|
||||
if(GetHasSpellEffect(INVOKE_WALL_OF_GLOOM, oTarget))
|
||||
{
|
||||
//Search through the valid effects on the target.
|
||||
eAOE = GetFirstEffect(oTarget);
|
||||
while (GetIsEffectValid(eAOE) && bValid == FALSE)
|
||||
{
|
||||
if (GetEffectCreator(eAOE) == GetAreaOfEffectCreator())
|
||||
{
|
||||
//If the effect was created by either half of Fog from the Void
|
||||
if(GetEffectSpellId(eAOE) == INVOKE_WALL_OF_GLOOM)
|
||||
{
|
||||
RemoveEffect(oTarget, eAOE);
|
||||
bValid = TRUE;
|
||||
}
|
||||
}
|
||||
//Get next effect on the target
|
||||
eAOE = GetNextEffect(oTarget);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user