Files
HeroesStone_PRC8/_module/nss/zep_cw_remvfx.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

35 lines
901 B
Plaintext

//::///////////////////////////////////////////////
//:: CEP Creature Wizard
//:: Community Expansion Pack
//:://////////////////////////////////////////////
/*
Remove all VFX
*/
//:://////////////////////////////////////////////
//:: Created By: 420
//:: Created On: April 20, 2009
//:://////////////////////////////////////////////
#include "zep_cw_inc"
void main()
{
struct CW2da data = Get2daData();
object oTarget = data.target;
object oCreator;
effect eVFX = GetFirstEffect(oTarget);
while(GetIsEffectValid(eVFX))
{
if(GetEffectType(eVFX) == EFFECT_TYPE_VISUALEFFECT &&
GetEffectSubType(eVFX) == SUBTYPE_SUPERNATURAL)
{
oCreator = GetEffectCreator(eVFX);
if(oCreator == OBJECT_SELF ||
!GetIsObjectValid(oCreator))
{
RemoveEffect(oTarget, eVFX);
}
}
eVFX = GetNextEffect(oTarget);
}
}