Talk:Aurora Beam (move): Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
(Created page with "==Chance of secondary effect== The Stadium description says the secondary effect has a one-in-three chance. Is that description wrong, or did the effect chance used to be that...")
 
Line 1: Line 1:
==Chance of secondary effect==
==Chance of secondary effect==
The Stadium description says the secondary effect has a one-in-three chance. Is that description wrong, or did the effect chance used to be that in Generation I? [[User talk:Yeyjordan|<font color="#aaa">yey</font><font color="#969">jordan</font>]] 07:17, 3 June 2014 (UTC)
The Stadium description says the secondary effect has a one-in-three chance. Is that description wrong, or did the effect chance used to be that in Generation I? [[User talk:Yeyjordan|<font color="#aaa">yey</font><font color="#969">jordan</font>]] 07:17, 3 June 2014 (UTC)
:Going through the core of Red's engine in the pokered disassembly seems to confirm that Aurora Beam does indeed have a 33.2% chance of lowering Attack. The procedure for moves with [https://github.com/pret/pokered/blob/master/engine/battle/core.asm#L7212 stat lowering as a secondary effect] compares the the [https://github.com/pret/pokered/blob/master/engine/battle/core.asm#L7762 value 0x55] (decimal 85) with a random number, which is equivalent to a 85/256 = ~33.2% chance, which has historically only been known for the move Psychic. In-game testing that I've done seems to point to this chance instead of 10%, as stated in the article. Bubble, BubbleBeam, and Constrict are all in the same situation. [[User:CunningClaymore|CunningClaymore]] ([[User talk:CunningClaymore|talk]]) 20:04, 21 March 2017 (UTC)

Revision as of 20:04, 21 March 2017

Chance of secondary effect

The Stadium description says the secondary effect has a one-in-three chance. Is that description wrong, or did the effect chance used to be that in Generation I? yeyjordan 07:17, 3 June 2014 (UTC)

Going through the core of Red's engine in the pokered disassembly seems to confirm that Aurora Beam does indeed have a 33.2% chance of lowering Attack. The procedure for moves with stat lowering as a secondary effect compares the the value 0x55 (decimal 85) with a random number, which is equivalent to a 85/256 = ~33.2% chance, which has historically only been known for the move Psychic. In-game testing that I've done seems to point to this chance instead of 10%, as stated in the article. Bubble, BubbleBeam, and Constrict are all in the same situation. CunningClaymore (talk) 20:04, 21 March 2017 (UTC)