20 lines
353 B
Plaintext
20 lines
353 B
Plaintext
void main()
|
|
{
|
|
object oTarget = OBJECT_SELF;
|
|
|
|
SetCommandable(TRUE, oTarget);
|
|
AssignCommand(oTarget, ClearAllActions());
|
|
|
|
effect eFX = GetFirstEffect(oTarget);
|
|
|
|
while (GetIsEffectValid(eFX))
|
|
{
|
|
if(GetEffectType(eFX) == EFFECT_TYPE_VISUALEFFECT)
|
|
{
|
|
RemoveEffect(oTarget, eFX);
|
|
}
|
|
eFX = GetNextEffect(oTarget);
|
|
}
|
|
|
|
}
|