ref: c170810ad4952e3add1b1453db7436c5a8c16cce
parent: add58fb00d73495655243c4cf13b730bbc1b3242
author: Eldred Habert <[email protected]>
date: Sun Mar 3 13:10:03 EST 2019
Correct indentation Add spaces before unchanged lines
--- a/docs/bugs_and_glitches.md
+++ b/docs/bugs_and_glitches.md
@@ -182,8 +182,8 @@
+ ; Thus chance will be subtracted from 0, guaranteeing a carry
+ call c, BattleRandom
cp [hl]
- pop hl
- ret c
+ pop hl
+ ret c
.failed
ld a, 1
@@ -199,12 +199,12 @@
+ cp LINK_COLOSSEUM
+ scf ; Force RNG to be called
+ jr z, .nofix ; Don't apply fix in link battles, for compatibility
- ld a, [hl]
- sub 100 percent
- ; If chance was 100%, RNG won't be called (carry not set)
- ; Thus chance will be subtracted from 0, guaranteeing a carry
-+ .nofix
- call c, BattleRandom
+ ld a, [hl]
+ sub 100 percent
+ ; If chance was 100%, RNG won't be called (carry not set)
+ ; Thus chance will be subtracted from 0, guaranteeing a carry
++.nofix
+ call c, BattleRandom
```
## Belly Drum sharply boosts Attack even with under 50% HP