being treated in the same way as one treats others (usually a negative meaning) Our boss got a taste of his own medicine when people began to ignore him as he had always done to them.
DOSE/TASTE OF ONE'S OWN MEDICINE
Meaning of DOSE/TASTE OF ONE'S OWN MEDICINE in English
English idioms vocab. Словарь английских идиом и выражений. 2012