Curse of Opulence's triggered ability resolves after attackers have been declared. Any costs to attack must have already been paid before the attacking player creates the Gold.
Curse of Opulence
A player is attacking another player if they control a creature that's attacking that player. If no creatures are attacking the enchanted player as a Curse's ability resolves (most likely because they've left the battlefield), only the Curse's controller performs its actions.
Each Curse's ability triggers only once, no matter how many creatures are attacking the enchanted player.
Magic: The Gathering · ™ & © Wizards of the Coast · Illus. Kieran Yanner
Card data via Scryfall. Rarix is fan-made; not endorsed by the rights holders.
