Rune_PRC8/_module/nss/inc_ai.nss
Jaysyn904 d1c309ae63 Initial commit
Initial commit
2024-09-13 09:10:39 -04:00

23 lines
661 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;
}