ref: 146d12d6e50ed468bcb4866b23483bdebf4e5874
parent: 64e4300f4decc52681fbb4346f99ac648e4c11c7
author: Fredrik Ljungdahl <[email protected]>
date: Fri Oct 28 22:08:18 EDT 2016
Point out a bug with enemy usage of Teleport Also point out a redundancy in ThunderAccuracy
--- a/battle/effect_commands.asm
+++ b/battle/effect_commands.asm
@@ -6682,6 +6682,10 @@
srl b
srl b
cp b
+ ; This does the wrong thing. What was
+ ; probably intended was jr c, .failed
+ ; The way this is made makes enemy use
+ ; of Teleport always succeed if able
jr nc, .run_away
.run_away
call UpdateBattleMonInParty
@@ -9745,6 +9749,7 @@
ret
.rain
+ ; Redundant with CheckHit guranteeing hit
ld [hl], 100 percent
ret