A shadoloth retains its Dexterity bonus to Armor Class even when caught flat-footed or struck by an invisible attacker, and it cannot be flanked except by a rogue of 17th-level or higher. It can flank characters that also have uncanny dodge as if it were a 13th-level rogue.