removed one useless if and solved the problem with the shooted sword