You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
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:
@@ -670,8 +670,10 @@ This bug existed for all battles in Gold and Silver, and was only fixed for sing
|
|||||||
ld hl, wEnemyMonType1
|
ld hl, wEnemyMonType1
|
||||||
ldh a, [hBattleTurn]
|
ldh a, [hBattleTurn]
|
||||||
and a
|
and a
|
||||||
jr z, CheckTypeMatchup
|
- jr z, CheckTypeMatchup
|
||||||
|
+ jr z, .get_type
|
||||||
ld hl, wBattleMonType1
|
ld hl, wBattleMonType1
|
||||||
|
+.get_type
|
||||||
+ ld a, BATTLE_VARS_MOVE_TYPE
|
+ ld a, BATTLE_VARS_MOVE_TYPE
|
||||||
+ call GetBattleVar ; preserves hl, de, and bc
|
+ call GetBattleVar ; preserves hl, de, and bc
|
||||||
CheckTypeMatchup:
|
CheckTypeMatchup:
|
||||||
|
Reference in New Issue
Block a user