Sorry, just went through my defense logs and that particular attack was pretty chaotic as the attacker spawned right next to my castle. Can't tell what happened in what order, and I could be dead wrong about this having anything to do with the library upgrade.