NWNDS/nwnds_module/inc_ai.nss
Jaysyn904 de24f81734 Added NWN Dark Sun module contents
Added NWN Dark Sun module contents.
2021-07-12 21:24:46 -04:00

23 lines
678 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;
}
//void main () {}