shithub: pokecrystal

Download patch

ref: 2c6690d10deb309102e7b69f77f973d12e4afb50
parent: 9ebe549347aa16ae3f10d3261242bb1e7bbb6ca6
author: Eldred Habert <eldredhabert0@gmail.com>
date: Wed Nov 6 18:25:31 EST 2019

Update bug fix for AI CheckTypeMatchup assumption (#656)

The bug fix caused all player moves to have Normal-type effectiveness

--- a/docs/bugs_and_glitches.md
+++ b/docs/bugs_and_glitches.md
@@ -670,8 +670,10 @@
  	ld hl, wEnemyMonType1
  	ldh a, [hBattleTurn]
  	and a
- 	jr z, CheckTypeMatchup
+-	jr z, CheckTypeMatchup
++	jr z, .get_type
  	ld hl, wBattleMonType1
++.get_type
 +	ld a, BATTLE_VARS_MOVE_TYPE
 +	call GetBattleVar ; preserves hl, de, and bc
  CheckTypeMatchup: