If a llama is not tamed and the player hits it and then rides it, the llama does not try to spit at the player until they get off. However, if the player hits the llama and rides it while it is tamed, the llama spins around and tries to spit at the player riding it, which always fails.
Hi there!
I can confirm.