ref: b49f5ac73b7d9b3758259b748502eae0ff62750f
parent: 868e28f309ec8d08bcdea913c3fc53b0ef55315f
author: Colton G. Rushton <colton51919@gmail.com>
date: Fri Sep 3 12:37:56 EDT 2021
Add fix for Sunny Day moves used by the "Smart" AI (#849) Fixes https://github.com/pret/pokecrystal/issues/807
--- a/docs/bugs_and_glitches.md
+++ b/docs/bugs_and_glitches.md
@@ -58,6 +58,7 @@
- [Wild Pokémon can always Teleport regardless of level difference](#wild-pokémon-can-always-teleport-regardless-of-level-difference)
- [`HELD_CATCH_CHANCE` has no effect](#held_catch_chance-has-no-effect)
- [Credits sequence changes move selection menu behavior](#credits-sequence-changes-move-selection-menu-behavior)
+ - [Solar Beam, Flame Wheel, and Moonlight are not in the "Smart" AI's list of moves that encourage Sunny Day](#solar-beam-flame-wheel-and-moonlight-are-not-in-the-smart-ais-list-of-moves-that-encourage-sunny-day)
- [Overworld engine](#overworld-engine)
- [`LoadMetatiles` wraps around past 128 blocks](#loadmetatiles-wraps-around-past-128-blocks)
- [Surfing directly across a map connection does not load the new map](#surfing-directly-across-a-map-connection-does-not-load-the-new-map)
@@ -1341,6 +1342,25 @@
ret
```
+### Solar Beam, Flame Wheel, and Moonlight are not in the "Smart" AI's list of moves that encourage Sunny Day
+
+**Fix:** Edit [data/battle/ai/sunny_day_moves.asm])(https://github.com/pret/pokecrystal/blob/master/data/battle/ai/sunny_day_moves.asm):
+
+```diff
+SunnyDayMoves:
+ db FIRE_PUNCH
+ db EMBER
+ db FLAMETHROWER
++ db SOLARBEAM
+ db FIRE_SPIN
+ db FIRE_BLAST
++ db FLAME_WHEEL
+ db SACRED_FIRE
+ db MORNING_SUN
+ db SYNTHESIS
++ db MOONLIGHT
+ db -1 ; end
+```
## Overworld engine