Ancient Guardian complete failure

Not sure if this is a bug or not, but while defending a ruin, the ancient guardian I spent resources to build could not hit anything at all. Even at point-blank range. It’s worse than useless because it also blocks sight lines and is generally a major nuisance.