Raid — At the beginning of your end step, if you attacked this turn, create a Food token. (It’s an artifact with “, , Sacrifice this token: You gain 3 life.”) , Sacrifice this enchantment: Target opponent loses X life, where X is the amount of life you gained this turn.
Raid abilities care only that you attacked with a creature. It doesn't matter how many creatures you attacked with or which player, planeswalker, or battle those creatures attacked.
08-11-2024
wotc
The value of X is determined only once, as Midnight Snack's last ability resolves.
08-11-2024
wotc
Raid abilities evaluate the entire turn to see if you attacked with a creature. That creature doesn't have to still be on the battlefield. Similarly, the player, planeswalker, or battle it attacked doesn't have to still be in the game or on the battlefield.
Random a card of Magic: The Gathering (MTG), but you can also roll the D20 dice, random a Planeswalker, have fun with the random rules and more.