Update bug fix for AI CheckTypeMatchup assumption (#656)

The bug fix caused all player moves to have Normal-type effectiveness
This commit is contained in:
Eldred Habert 2019-11-06 23:25:31 +01:00 committed by mid-kid
parent 9ebe549347
commit 2c6690d10d

View File

@ -670,8 +670,10 @@ This bug existed for all battles in Gold and Silver, and was only fixed for sing
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: