Well, that just makes him mad. The banging isn't actually enough to really hurt him through his thick layer of scales, but it's annoying enough to draw a roar out of him, and he swings aside to slam his face-- Alphys-first-- into the nearest vertical surface.
no subject