You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Document a bugfix: 1/256 failure rate for 100% effect chance
This commit is contained in:
@@ -1877,6 +1877,8 @@ BattleCommand_EffectChance:
|
||||
ld hl, wEnemyMoveStruct + MOVE_CHANCE
|
||||
.got_move_chance
|
||||
|
||||
; BUG: 1/256 chance to fail even for a 100% effect chance,
|
||||
; since carry is not set if BattleRandom == [hl] == 255
|
||||
call BattleRandom
|
||||
cp [hl]
|
||||
pop hl
|
||||
|
Reference in New Issue
Block a user