summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorElectroDeoxys <ElectroDeoxys@gmail.com>2020-12-21 10:01:30 +0000
committerElectroDeoxys <ElectroDeoxys@gmail.com>2020-12-21 10:03:34 +0000
commit58e2c945e98b30836f2eb29f1bd53cfdf01d66a6 (patch)
treefda37fd93176ff4fc5a7a6b9acbfd65a1436d5a3 /src
parent4ffd9bef434e7d2b24c60906538f76013882f34e (diff)
Document AI Shift bug
Diffstat (limited to 'src')
-rw-r--r--src/engine/bank08.asm8
1 files changed, 8 insertions, 0 deletions
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