text: You need to control the sources that dealt damage only at the times when they dealt damage. If they die or change control after that point, the “to solve” ability will still trigger at the beginning of your end step as long as you still control Case of the Burning Masks.