I think it's over complicated
The dog associates attention with being told off and Lots of fuss, the way I understood it. Have you tried simply ignoring him? I mean, for example when he tries to sit on you/ your friend just stand up and turn around, ignore, no attention?
|