Same-type attack bonus
A move that shares a type with its user does ×1.5 damage, rounded down, in Pokémon Gen 1–3.
Facts
- Games
- 7 · 1996–2004
- Evidence
- Code (10)
- Sources
- 7
On this page
A move whose type matches one of its user’s types gets a damage bonus. The comment on Crystal’s code for it expands its name, STAB, as “Same Type Attack Bonus”1. It runs in the same routine as type effectiveness, directly before the type rows2,3,4.
- Half againPokémon Red and Blue (1996). Damage plus half, just before the type rows.2Pokémon Yellow (1998). Red and Blue's damage plus half, unchanged.5Pokémon Gold and Silver (1999). Damage plus half, after weather and badge boosts and before the type rows.6Pokémon Crystal (2000). Damage plus half, after weather and badge boosts and before the type rows.3Pokémon Ruby and Sapphire (2002). Damage × 15 / 10, just before the type rows.7Pokémon Emerald (2004). Damage × 15 / 10, just before the type rows.4Pokémon FireRed and LeafGreen (2004). Damage × 15 / 10, just before the type rows.8
#Implementations
| Game | Integer math |
|---|---|
| Red and Blue | 2 |
| Crystal | 3, after weather and badge boosts |
| Emerald | 4 |
Pokémon Yellow keeps Red and Blue’s form, and Pokémon Gold and Silver already have Crystal’s5,2,6,3. Pokémon Ruby and Sapphire and Pokémon FireRed and LeafGreen use Emerald’s7,8,4.
The forms agree for every non-negative : 4. In Crystal and Emerald, Struggle skips the routine and never gets the bonus9,10.
Every claim about this mechanic, by game (8)
References
- ^Codepret/pokecrystaleffect_commands.asm 1214–1215
How we know
A comment in pokecrystal's STAB battle command expands STAB as “Same Type Attack Bonus”.
1214BattleCommand_Stab: 1215; STAB = Same Type Attack Bonus
engine/battle/effect_commands.asm lines 1214–1215 at 97187cd · upstream ↗ - ^ abcdCodepret/pokeredcore.asm 5101–5125
How we know
The type-adjustment routine applies STAB before any type row: when the move's type matches either attacker type.
5116 srl b 5117 rr c ; bc = floor(0.5 * damage) 5118 add hl, bc ; hl = floor(1.5 * damage)
engine/battle/core.asm lines 5101–5125 at af51989 · upstream ↗ - ^ abcdCodepret/pokecrystaleffect_commands.asm 1251–1288
How we know
The STAB battle command applies weather and badge type boosts, then STAB ( if either attacker type matches), then the type chart.
1251 farcall DoWeatherModifiers ⋮ 1258 farcall DoBadgeTypeBoosts ⋮ 1278 srl b 1279 rr c 1280 add hl, bc
engine/battle/effect_commands.asm lines 1251–1288 at 97187cd · upstream ↗ - ^ abcdeCodepret/pokeemeraldbattle_script_commands.c 1368–1373; battle.h 471
How we know
Before the type chart, the type-calculation battle command applies STAB as when either attacker type equals the move's type.
1368 // check stab 1369 if (IS_BATTLER_OF_TYPE(gBattlerAttacker, moveType)) ⋮ 1371 gBattleMoveDamage = gBattleMoveDamage * 15; 1372 gBattleMoveDamage = gBattleMoveDamage / 10;
src/battle_script_commands.c lines 1368–1373 at 731ad5b · upstream ↗ include/battle.h#L471 · upstream ↗ - ^ abCodepret/pokeyellow · pret/pokeredcore.asm 5287–5288, 5075–5191
How we know
Yellow keeps Red and Blue's routine that adjusts damage for the move's type, so STAB is still before the type rows.
5287 srl b 5288 rr c ; bc = floor(0.5 * damage)
engine/battle/core.asm lines 5287–5288 at b6696f2 · upstream ↗ engine/battle/core.asm#L5075-L5191 · upstream ↗ - ^ abCodepret/pokegold · pret/pokecrystaleffect_commands.asm 1217–1281, 1214–1397
How we know
Gold and Silver's same-type bonus command, which Crystal keeps unchanged, applies the weather and badge type boosts and then STAB, , before the type rows.
1217BattleCommand_Stab: 1218; STAB = Same Type Attack Bonus ⋮ 1254 farcall DoWeatherModifiers ⋮ 1261 farcall DoBadgeTypeBoosts ⋮ 1281 srl b
engine/battle/effect_commands.asm lines 1217–1281 at fc702b6 · upstream ↗ engine/battle/effect_commands.asm#L1214-L1397 · upstream ↗ - ^ abCodepret/pokeruby · pret/pokeemeraldbattle_script_commands.c 1486–1490, 1368–1372
How we know
Ruby and Sapphire's type-calculation command applies STAB as before the type rows, as Emerald's does.
1486 //check stab ⋮ 1489 gBattleMoveDamage = gBattleMoveDamage * 15;
src/battle_script_commands.c lines 1486–1490 at 5784633 · upstream ↗ 1368 // check stab 1369 if (IS_BATTLER_OF_TYPE(gBattlerAttacker, moveType)) ⋮ 1371 gBattleMoveDamage = gBattleMoveDamage * 15; 1372 gBattleMoveDamage = gBattleMoveDamage / 10;
src/battle_script_commands.c lines 1368–1372 at 731ad5b · upstream ↗ - ^ abCodepret/pokefirered · pret/pokeemeraldbattle_script_commands.c 1287–1292, 1368–1372
How we know
FireRed and LeafGreen keep Emerald's STAB, before the type rows; their type-calculation command differs from Emerald's only in how it names the defender's types.
1287 // check stab 1288 if (IS_BATTLER_OF_TYPE(gBattlerAttacker, moveType)) ⋮ 1290 gBattleMoveDamage = gBattleMoveDamage * 15; 1291 gBattleMoveDamage = gBattleMoveDamage / 10;
src/battle_script_commands.c lines 1287–1292 at ce6406d · upstream ↗ 1368 // check stab 1369 if (IS_BATTLER_OF_TYPE(gBattlerAttacker, moveType)) ⋮ 1371 gBattleMoveDamage = gBattleMoveDamage * 15; 1372 gBattleMoveDamage = gBattleMoveDamage / 10;
src/battle_script_commands.c lines 1368–1372 at 731ad5b · upstream ↗ - ^Codepret/pokecrystaleffect_commands.asm 1216–1219
How we know
Struggle returns from the STAB battle command at once, so it skips weather, badge boosts, STAB, and the type chart.
1216 ld a, BATTLE_VARS_MOVE_ANIM 1217 call GetBattleVar 1218 cp STRUGGLE 1219 ret z
engine/battle/effect_commands.asm lines 1216–1219 at 97187cd · upstream ↗ - ^Codepret/pokeemeraldbattle_script_commands.c 1360–1364
How we know
Struggle skips the type-calculation battle command entirely, so neither STAB nor the type chart touches it.
1360 if (gCurrentMove == MOVE_STRUGGLE) ⋮ 1362 gBattlescriptCurrInstr++; 1363 return;
src/battle_script_commands.c lines 1360–1364 at 731ad5b · upstream ↗
Sources
Code
- pret contributors. 2026. “pokecrystal: disassembly of Pokémon Crystal.” pret. Commit 97187cd. pret/pokecrystal @ 97187cd · licence, all uses
- pret contributors. 2026. “pokered: disassembly of Pokémon Red and Blue.” pret. Commit af51989. pret/pokered @ af51989 · licence, all uses
- pret contributors. 2026. “pokeemerald: decompilation of Pokémon Emerald.” pret. Commit 731ad5b. pret/pokeemerald @ 731ad5b · licence, all uses
- pret contributors. 2026. “pokeyellow: disassembly of Pokémon Yellow.” pret. Commit b6696f2. pret/pokeyellow @ b6696f2 · licence, all uses
- pret contributors. 2026. “pokegold: disassembly of Pokémon Gold and Silver.” pret. Commit fc702b6. pret/pokegold @ fc702b6 · licence, all uses
- pret contributors. 2026. “pokeruby: decompilation of Pokémon Ruby and Sapphire.” pret. Commit 5784633. pret/pokeruby @ 5784633 · licence, all uses
- pret contributors. 2026. “pokefirered: decompilation of Pokémon FireRed and LeafGreen.” pret. Commit ce6406d. pret/pokefirered @ ce6406d · licence, all uses