The value of X is determined only as Gruul Beastmaster’s triggered ability resolves. Once that happens, the value of X won’t change later in the turn even if Gruul Beastmaster’s power changes.

Artwork
Loading artwork…
Gruul Beastmaster
Ravnica Allegiance · #129 · EN
Nonfoil—Foil—
Card rules
Riot (This creature enters with your choice of a +1/+1 counter or haste.)
Whenever this creature attacks, another target creature you control gets +X/+0 until end of turn, where X is this creature's power.
2/2
Uncommon · Illustrated by Kimonas Theodossiou
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
If you choose for the creature to gain haste, it gains haste indefinitely. It won’t lose it as the turn ends or as another player gains control of it.
If Gruul Beastmaster leaves the battlefield before its triggered ability resolves, use its power as it last existed on the battlefield to determine the value of X.
Riot is a replacement effect. Players can’t respond to your choice of +1/+1 counter or haste, and they can’t take actions while the creature is on the battlefield without one or the other.
If a creature entering the battlefield has riot but can’t have a +1/+1 counter put onto it, it gains haste.
If Gruul Beastmaster’s power is negative as its triggered ability resolves, X is considered to be 0. In other words, that ability can’t cause the creature to lose power.