Fixed ClassCastException relating to counter-attack with Swords. Fixes
#784