My mistake about UK/etc. then, but my point still seems to stand; in most countries it's only the ruler personally that's immune. If Sweden does something that harms me, I can't demand that the king be punished, but I can demand compensation from Sweden (as long as the legal proceedings take place there).