Fixed a bug with counterattacks