The AI rook never misses a hammer slam, even if you are far out of range.
To reproduce this get the warp cloak favor item and wait for rook to hammer slam you. As soon as he brings the hammer up warp directly away from him the maximum possible distance. Notice that when the hammer lands you still take max damage, even though you are far out of range.
If you go behind the rook he will miss though.