Magmaroth’s second ability resolves before the spell that caused it to trigger. The ability will resolve even if that spell is countered.

Artwork
Loading artwork…
Magmaroth
Hour of Devastation · #102 · EN
Nonfoil—Foil—
Card rules
At the beginning of your upkeep, put a -1/-1 counter on this creature.
Whenever you cast a noncreature spell, remove a -1/-1 counter from this creature.
5/5
Sand into glass and flesh into ash—such are the markers of its domain.
Uncommon · Illustrated by Yeong-Hao Han
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Pioneer Legal
Timeless Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions