17 lines
409 B
Plaintext
Raw Permalink Normal View History

2024-11-25 19:36:07 -05:00
// ox elysium - remove negative effects
void main()
{
object oPC=GetExitingObject();
effect eEf=GetFirstEffect(oPC);
int nET=GetEffectType(eEf);
while(nET!=EFFECT_TYPE_INVALIDEFFECT)
{ // process effects
if (nET==EFFECT_TYPE_ABILITY_DECREASE)
{
DelayCommand(0.2,RemoveEffect(oPC,eEf));
}
eEf=GetNextEffect(oPC);
nET=GetEffectType(eEf);
} // process effects
}