For fighting in the wild, you need to click the player and then attack. This prevents accidental attacks.