17 lines
409 B
Plaintext
17 lines
409 B
Plaintext
|
// 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
|
||
|
}
|