https://replay.pokemonshowdown.com/gen8uu-1324502410
On turn 21 in this replay, my opponent's Nidoqueen knocked my Galarian Moltres below half health using Sludge Wave, but Berserk didn't activate and I didn't get the +1 special attack boost. A few turns later, Berserk still activated for their Galarian Moltres. How come it didn't activate for my Moltres?