summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Harding <33dannye@gmail.com>2020-12-29 10:56:20 -0600
committerGitHub <noreply@github.com>2020-12-29 10:56:20 -0600
commit39a348c7844186be17b59dfcfae6b043ec2eb489 (patch)
tree39952a38b4eff7f5cd2fdc5f9ec0e50f104b948b /src
parent9fab715759ddf919b0c4bb9a01095c4c225fcac0 (diff)
parentd88dec249853d441b5469a3825aedf378538e0d5 (diff)
Merge pull request #85 from ElectroDeoxys/master
Document bugs and glitches
Diffstat (limited to 'src')
-rw-r--r--src/engine/bank05.asm4
-rw-r--r--src/engine/bank08.asm8
2 files changed, 10 insertions, 2 deletions
diff --git a/src/engine/bank05.asm b/src/engine/bank05.asm
index 2b59c96..0de163d 100644
--- a/src/engine/bank05.asm
+++ b/src/engine/bank05.asm
@@ -4437,8 +4437,8 @@ DetermineAIScoreOfMoveEnergyRequirement: ; 16695 (5:6695)
; this is an identical check as above to test whether this card is active.
; in case it is active, the score gets added 10 more points,
; in addition to the 20 points already added above.
-; what was probably intended was to add 20 points in case this card
-; is active and only 10 in case it is benched.
+; what was probably intended was to add 20 points
+; plus 10 in case it is the Arena card.
ldh a, [hTempPlayAreaLocation_ff9d]
or a
jr nz, .check_evolution
diff --git a/src/engine/bank08.asm b/src/engine/bank08.asm
index d674a9c..cfcc178 100644
--- a/src/engine/bank08.asm
+++ b/src/engine/bank08.asm
@@ -6798,6 +6798,14 @@ HandleAIShift: ; 22476 (8:6476)
push bc
call GetCardIDFromDeckIndex
call GetCardType
+ ; in case this is a Mysterious Fossil or Clefairy Doll card,
+ ; AI might read the type of the card incorrectly here.
+ ; uncomment the following lines to account for this
+ ; cp TYPE_TRAINER
+ ; jr nz, .not_trainer
+ ; pop bc
+ ; jr .loop_play_area
+; .not_trainer
call TranslateColorToWR
pop bc
and b