Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The usually creature-only feat "Uncanny Reflex" will mean the creature can never be flat footed unless Stunned, Paralyzed, Entangled, Petrified, Prone or Sleeping. So even if not doing a combat action they'll be fine and have all their usual AC.

...

Code Block
int GetFlatFooted()
{
    if (GetCreatureStunned()) // EffectStunned
       return TRUE;
       
    if (CannotUseLegsOrArms && Mode != DefStance) // Paralysis, Entangle, Sleep, KnockdownPetrified, etc.
        return TRUE;

    if (GetHasMonsterUncannyReflex()) // FEAT_UNCANNY_REFLEX
        return FALSE;
        
    if (GetIsBlind()) // The person is blind, or blind enough
        return TRUE;    

    if (IsDoingTask())// most actions, eg, picking up items, opening stuff, resting etc and also standing around doing nothing. This also checks for Knockdown (Prone) animations.
         return TRUE;

    // Moving, or actively doing combat-related things
    return FALSE;     
}

...