fixed enemy attack bug

fixed bug where enemies would not correctly reset attack state when they
died while firing