Critical hits ignore stat changes in Pokemon Red, Blue and Yellow
A critical hit doubles your level for the damage formula, then throws away every stat change on both sides. After a Swords Dance, that trade loses.
The short answer. In Pokemon Red, Blue and Yellow, a critical hit ignores every stat change on both sides: Swords Dance and Growl, Reflect and Light Screen, and the burn's Attack drop. The game doubles the attacker's level for the damage formula, but reads both Pokemon's plain stats from their party data, so a Pokemon at +2 Attack or more usually does less damage with a critical hit than without one. A Kingler at +2 does 363 to Chansey with Stomp, and 353 with a critical hit.
- Doubling the level makes a hit about 1.95 times as strong at level 100: the formula's level term goes from 42 to 82.
- It cuts both ways: a critical hit also ignores your own Attack drops, the other side's Defense boosts, Reflect, Light Screen and your burn, so then it helps a lot.
- How often it happens depends only on base Speed (see the Focus Energy bug).
- Tested in the game's own code in an emulator, in Red and Yellow. How I checked it.
Crit or no crit: the damage, side by side
Both Pokemon at level 100 with the battler's stats (DV 15 and full stat experience). The game's whole damage formula runs for every one of its 39 damage rolls, once as a normal hit and once as a critical hit.
Stage by stage (green: a normal hit, red: a critical hit, the highest roll)
What the code does
Before every damaging move, GetDamageVarsForPlayerAttack (and GetDamageVarsForEnemyAttack for the other side) loads the two numbers the formula divides: the attacker's Attack and the target's Defense (or both Specials for a special move), as the battle keeps them, with stat stages, the burn's halving and Reflect's doubling in them. Then, on a critical hit, it throws both away:
; GetDamageVarsForPlayerAttack, pret pokered engine/battle/core.asm ld a, [wCriticalHitOrOHKO] and a jr z, .scaleStats ; in the case of a critical hit, reset the player's attack and the enemy's defense to their base values ld c, STAT_DEFENSE call GetEnemyMonStat ; the target's Defense, worked out again: no stage, no Reflect ... ld hl, wPartyMon1Attack ; your Attack from the party data: no stage, no burn ... sla e ; and the level doubled
"Base values" in pret's comment means the stats the Pokemon has outside battle, not species base stats. The party data never holds a stage, a burn penalty or a badge boost, and GetEnemyMonStat works the target's stat out again from its base stat, DV and level (or reads it from the other player's party in a link battle). Reflect's doubling was applied to the old number, so it is gone too.
So a critical hit trades every stat change for a doubled level. The formula's level term is 2 x level / 5 + 2: 42 at level 100, and 82 with the level doubled, so the critical hit is about 1.95 times a hit with the same stats. A +2 stage is 2 times. That is the whole bug, and it is why the game's own numbers come out this way:
| Kingler's STOMP on Chansey, highest roll | Attack used | Damage |
|---|---|---|
| No stages, normal hit | 358 | 181 |
| No stages, critical hit | 358 | 353 |
| +2 Attack, normal hit | 716 | 363 |
| +2 Attack, critical hit | 358 | 353 |
| +6 Attack (capped at 999), normal hit | 999 | 505 |
Both stats are divided by 4 when either is over 255, which is why the numbers are not exact doubles.
When a critical hit helps, and when it hurts
- It hurts after your own boosts: Swords Dance, Sharpen, Meditate, Growth, Amnesia. From +2 on, the critical hit usually does less.
- It helps against Reflect and Light Screen: the target's doubled Defense or Special is left out. In my test a burned Tauros did 37 damage to a Cloyster with a normal Body Slam before Reflect went up, and 138 with a critical hit through Reflect.
- It helps a burned Pokemon: the burn's halving is in the battle's Attack, not in the party data.
- It helps after Growl, Leer or Screech: your drops and the target's boosts are ignored too.
How I checked it
- Read:
GetDamageVarsForPlayerAttack,GetDamageVarsForEnemyAttack,GetEnemyMonStat,CalculateDamageandCriticalHitTestin pret's pokered and pokeyellow. - Run in the game: Red and Yellow under the PyBoy emulator, with the battler's battle oracle setting the rolls. Kingler used Swords Dance, then Stomp with the critical hit roll set to fail and then to succeed: 363 and 353 damage. A burned Tauros hit a Cloyster behind Reflect, normally and with a critical hit. The battler's engine matched the game on every byte, message and battle state.
- The calculator uses the same damage arithmetic as the battler's engine; a test compares the two.
- Not tested: anything on a real Game Boy.
Questions
Do critical hits ignore stat changes in Gen 1?
Yes, all of them, on both sides. On a critical hit, Pokemon Red, Blue and Yellow read the attacker's Attack or Special and the target's Defense or Special from their plain party data, so stat stages, Reflect, Light Screen and the burn's Attack drop are all left out. Then the attacker's level is doubled in the damage formula.
Can a critical hit do less damage than a normal hit in Gen 1?
Yes. Doubling the level makes a hit about 1.95 times as strong at level 100, but a +2 stage doubles the stat, and the critical hit throws the stage away. So at +2 Attack or more, a critical hit usually does less damage than a normal hit. A level 100 Kingler at +2 does 363 to Chansey with Stomp, and 353 when it lands a critical hit.
Do critical hits go through Reflect in Gen 1?
Yes. The target's Defense is read again from its party data on a critical hit, which leaves Reflect's doubling out. Light Screen is skipped the same way for special moves.
Does a burn lower critical hit damage in Gen 1?
No. The burn halves the Attack the battle keeps, and a critical hit does not read that number: it reads the Attack in the party data. So a burned Pokemon's critical hits do full damage.
How often do critical hits happen in Gen 1?
Base Speed / 2 times in 256 for an ordinary move, and 8 times that (at most 255 in 256) for Karate Chop, Razor Leaf, Crabhammer and Slash. Nothing else changes it except Focus Energy and Dire Hit, which lower it because of a bug.
Was this tested on a real Game Boy?
No. I read the damage routines in pret's disassembly and ran the game's own code in the PyBoy emulator, in Red and in Yellow: a Kingler at +2 Attack used Stomp without and then with a critical hit, and a burned Tauros landed a critical hit through Reflect. The battler's engine matched the game every time.