With regards to the other thread with the same name:
Does this mean Gengar is still the active Pokemon at the time that it takes damage, when it is knocked out?
That is, several events happen within a fixed time frame: Gengar taking damage, Genger getting KO'd, rocky helmet triggering, rocky...