What Derpy’s referencing in the penultimate panel is the time Casper ran afoul of a number of ponies, and Mad Munchkin incapacitated him–only for Hoofio to manipulate Derpy (who didn’t know what Casper was like at the time) into undoing the incapacitation.