Identify more bit flags (#1153)

This commit is contained in:
Sylvie
2024-11-29 19:29:30 -05:00
committed by GitHub
parent 8894e29da2
commit 644bd42fb0
78 changed files with 539 additions and 472 deletions

View File

@@ -64,10 +64,11 @@ AIChooseMove:
.ApplyLayers:
ld hl, TrainerClassAttributes + TRNATTR_AI_MOVE_WEIGHTS
; If we have a battle in BattleTower just load the Attributes of the first trainer class in wTrainerClass (Falkner)
; so we have always the same AI, regardless of the loaded class of trainer
; If we have a battle in Battle Tower, just load the attributes of the first
; trainer class in TrainerClassAttributes (Falkner), so we have always the
; same AI, regardless of the loaded class of trainer.
ld a, [wInBattleTowerBattle]
bit 0, a
bit IN_BATTLE_TOWER_BATTLE_F, a
jr nz, .battle_tower_skip
ld a, [wTrainerClass]

View File

@@ -178,7 +178,7 @@ AI_Redundant:
.FutureSight:
; BUG: AI does not discourage Future Sight when it's already been used (see docs/bugs_and_glitches.md)
ld a, [wEnemyScreens]
bit 5, a
bit SCREENS_UNUSED, a
ret
.Heal: