When exactly does Astral Heron trigger, and which card gets its discount?
Astral Heron triggers after your first card to finish resolving each turn, provided Astral Heron is at a battlefield then. If its triggered ability resolves, it discounts the next card you play this turn after that resolution. In a trigger condition, "When you play" is checked only when the act of playing that card is completed by its resolution.420.4.a If a spell is countered instead of resolving, it does not trigger Astral Heron, and the first card you later resolve that turn can trigger it instead.420.4.a.1
When the condition is fulfilled, the triggered ability is placed on the chain and must resolve before the discount exists.383.3407.5391.4 Once it resolves, "the next card you play this turn" means the next card you place on the chain and queue for finalization.420.5 Astral Heron's discount is applied while determining that card's total cost, before you pay the cost and finish finalizing it.356.4357