fixed player attack bug