I've come across this bit of dialogue in a visual novel (Easter Night from Ensemble Stars!):
A 「『イースターナイト』衣装も見られたので、私はそこそこ満足ですよ?」
B 「手品を披露しながら言われても馬鹿にされてる気分にしかならないのだよ」
A 「すみませんね〜 職業病なものでっ♪」
For context, the outfit mentioned is one that B had created for himself despite still recovering from a crisis.
The way the bolded phrase makes sense to me, it's B complaining about A showing off his magic tricks while talking to him, which makes him feel ridiculed. However wouldn't that mean there's subject change between the 手品を披露し and 言われても, something ungrammatical, as this lesson on IMABI seems to say (first paragraph under Simultaneous Action)?
Interpreting the sentence in a way that unifies the subjects would mean either that 1. B is doing the tricks, which doesn't fit the character (much less than A and his entertainer's 職業病, anyway), or that 2. A is the one being spoken to (言われても), but in that case the exchange doesn't seem to make much sense to me.
Is that really an error, or am I missing something about either the verbs used or the parsing?