The Glitchhouse · Gen 1 battle bugs

Substitute bugs in Pokemon Red, Blue and Yellow

Substitute is the move with the most bugs in Gen 1. Explosion that leaves its user standing, a Substitute that kills you, and a wall that sleep powder walks right through.

By GardenFlouer · tested in the game's own code in an emulator, 10 November 2026 · part of The Glitchhouse and Gen 1 battle bugs

The short answer. Substitute in Pokemon Red, Blue and Yellow has several bugs. Explosion and Selfdestruct do not faint their user when they break a Substitute. A Substitute made with exactly a quarter of your HP left leaves you at 0 HP, and you faint. A Substitute can survive at 0 HP. And sleep moves, Thunder Wave, Stun Spore, Glare and Leech Seed go straight through it, while draining moves still heal by hitting it.

Your Jolteon knows SUBSTITUTE, against a Golem that only knows EXPLOSION. Break the wall, keep the Golem.Try it in the battler

The bugs

What happensWhat the game does
Explosion or Selfdestruct breaks a SubstituteThe user does not faint
Substitute with exactly 1/4 of max HP leftIt works, the user is left at 0 HP and faints
Damage exactly equal to the Substitute's HPIt survives at 0 HP
Sleep Powder, Spore, Hypnosis, Sing, Lovely KissGo through
Thunder Wave, Stun Spore, GlareGo through
Leech Seed, Disable, Mimic, TransformGo through
Psybeam's and Confusion's 10% confusionGoes through (when the hit does not break it)
Absorb, Mega Drain, Leech Life, Dream EaterHit it and heal the user (no heal if it breaks)
Recoil moves and Hyper Beam that break itNo recoil, no recharge
A confused user behind its own Substitute hurts itselfThe damage hits the other side's Substitute

Make a Substitute, then hit it

Pick a Pokemon (level 100, the battler's stats) and its HP, and see what SubstituteEffect_ does with it; then hit the Substitute and see what AttackSubstitute does.

What goes through a Substitute

There is no single "is there a Substitute?" gate. Each effect checks for itself with CheckTargetSubstitute, and only five do: PoisonEffect, FreezeBurnParalyzeEffect (the burn, freeze and paralysis side effects of damaging moves), StatModifierDownEffect, FlinchSideEffect and ConfusionEffect (Confuse Ray and Supersonic). Everything else never asks:

In my test, a Jolteon behind a Substitute was not touched by Toxic, then was seeded by Leech Seed and paralyzed by Stun Spore through it. An Alakazam behind a Substitute was put to sleep by Spore.

When it breaks: the effect disappears

AttackSubstitute (engine/battle/core.asm) subtracts the damage from the Substitute's HP. Damage over 255 always breaks it; otherwise it breaks only when the subtraction goes below zero. When it breaks, the routine clears the Substitute flag, prints "SUBSTITUTE broke!", and then:

; AttackSubstitute, pret pokered engine/battle/core.asm
	ld hl, wPlayerMoveEffect   ; (wEnemyMoveEffect on the other side's turn)
	...
.nullifyEffect
	xor a
	ld [hl], a ; zero the effect of the attacker's move

Explosion's effect is what makes the user faint, so it never happens. The same zero cancels Double-Edge's recoil, a draining move's heal and Hyper Beam's recharge. In my test a Golem used Explosion on a Jolteon's Substitute three turns in a row and never fainted; the fourth Explosion, with no Substitute left, knocked Jolteon out. A Mega Drain that only dented a Substitute healed its user by 17; the Leech Life that broke it healed nothing.

Hitting the wrong Substitute

When a confused Pokemon hurts itself, or Jump Kick or Hi Jump Kick crashes, the damage is applied to the user, but AttackSubstitute picks whose Substitute to hit from whose turn it is. So a user behind its own Substitute damages the other side's Substitute instead (pret's comment: "If the user has a Substitute up and would take damage because of that, damage will be applied to the other player's Substitute"). In my test a confused Alakazam behind a Substitute hurt itself twice, and both times Gengar's Substitute lost HP: 80, then 43, then 6.

Which games

How I checked it

Jolteon with SUBSTITUTE against a Golem that only knows EXPLOSION: watch the Golem stay up.Try it in the battler

Questions

Does Explosion faint the user if it breaks a Substitute in Gen 1?

No. In Pokemon Red, Blue and Yellow, when a Substitute breaks, the game writes 0 over the attacker's move effect, so Explosion's and Selfdestruct's effect (the user fainting) never runs. If the Substitute survives the hit, or the move misses, the user faints as usual.

Does Substitute block sleep and paralysis in Gen 1?

No. Only poison moves, the moves that lower stats, Confuse Ray and Supersonic, and side effects of damaging moves check for a Substitute. Sleep moves, Thunder Wave, Stun Spore, Glare, Leech Seed, Disable, Mimic and Transform all reach the Pokemon behind it.

Can Substitute knock out its own user in Gen 1?

Yes. It costs a quarter of max HP, and it only fails when that would take HP below zero. With exactly a quarter left, the Pokemon makes the Substitute, drops to 0 HP and faints.

Can a Substitute have 0 HP?

Yes. A Substitute breaks only when the damage is more than its HP (or more than 255). Damage exactly equal to its HP leaves it standing at 0, and it takes one more hit of any size to break.

Do draining moves work on a Substitute in Gen 1?

In the English Red, Blue and Yellow, yes: Absorb, Mega Drain, Leech Life and Dream Eater hit it and heal the user by half the damage, unless the hit breaks it. The check meant to stop that never works, because fixing Swift moved it after a routine that overwrites the value it tests. In the Japanese Red and Green the check works, and those moves miss a Substitute.

Was this tested on a real Game Boy?

No. I read the routines in pret's disassembly and ran the game's own code in the PyBoy emulator, in Red and in Yellow, with the battler's battle oracle. The battler's engine matched the game in every case on this page.

More Gen 1 battle bugs