RATDOG/_module/nss/inc_ai.nss
Jaysyn904 df709d33fc Horsefly Swamp update
Creatures & encounter tables to support Horsefly swamp expansion.
2023-08-13 17:21:44 -04:00

22 lines
660 B
Plaintext

int GetCanAct(object oCreature)
{
effect eEffect = GetFirstEffect(oCreature);
int nEffect;
while ( GetIsEffectValid( eEffect ))
{
nEffect = GetEffectType(eEffect);
if ( nEffect == EFFECT_TYPE_PARALYZE ||
nEffect == EFFECT_TYPE_DAZED ||
nEffect == EFFECT_TYPE_DOMINATED ||
nEffect == EFFECT_TYPE_FRIGHTENED ||
nEffect == EFFECT_TYPE_PETRIFY ||
nEffect == EFFECT_TYPE_SLEEP ||
nEffect == EFFECT_TYPE_STUNNED ||
nEffect == EFFECT_TYPE_TURNED )
return FALSE;
eEffect = GetNextEffect(oCreature);
}
return TRUE;
}