131 Commits

Author SHA1 Message Date
Pawkkie
819e7d9c03 Fix failing test 2025-07-13 14:16:22 -04:00
Pawkkie
bc4ad07f47 Merge branch 'master' into master-to-upcoming 2025-07-13 13:34:35 -04:00
Pawkkie
06c54a2d60
Fix switching 1v1 calcs not handling 0 (#7131) 2025-07-13 17:45:59 +02:00
AlexOn1ine
68db4c5a77 12/07/25 master to upcoming merge 2025-07-12 11:55:06 +02:00
surskitty
424c127b8b
AI Tests + accompanying bugfixes for Skill Swap, Worry Seed, weather setting in double battles, and Discharging into an ally's lightningrod (#7297) 2025-07-10 16:08:14 -04:00
surskitty
4e558af76e
AI uses After You to help set up Trick Room. (#7310) 2025-07-10 20:03:46 +02:00
Pawkkie
419219bb31
Add AI_FLAG_ASSUME_STAB (#6797) 2025-07-10 19:58:31 +02:00
Pawkkie
e4d9298200
Fix move comparison scoring (#7301) 2025-07-10 09:51:46 +02:00
surskitty
95a02dddb9
Improved logic for Guard Split and Power Split. (#7298) 2025-07-09 18:11:39 -04:00
Pawkkie
d213b1fad7
Fix switch AI not seeing absorbing abilities (#7309) 2025-07-09 17:21:49 -04:00
surskitty
4052ab337c
Expanding and Refactoring Skill Swap and other ability-changing moves (#7238)
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
2025-07-05 14:49:35 +02:00
Alex
f8551830c9
Adds Gen5+ Encore config (#7051) 2025-06-25 15:58:30 +02:00
AlexOn1ine
3a42cd84af comment test 2025-06-20 17:31:16 +02:00
AlexOn1ine
aabb632894 Master to upcoming merge, 20/06/25 2025-06-20 17:09:58 +02:00
hedara90
b2a0107a68
Test runner fixes (#7100)
Co-authored-by: Hedara <hedara90@gmail.com>
2025-06-15 12:02:29 +02:00
Pawkkie
3db12a0ae6
Haze Boosting AI Followup (#6966) 2025-06-11 18:30:22 +02:00
Alex
fd856e5068
Removes duplicate AI ability func (#7045)
Co-authored-by: Bassoonian <iasperbassoonian@gmail.com>
2025-06-09 11:30:16 +02:00
Emilia Daelman
f4ff5e6d26
Feature/ai/wide guard quick guard singles (#7086)
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
2025-06-08 21:50:34 +02:00
Bassoonian
1a6ed20713
Add dedicated getter functions for Pokémon types and abilities (#7043) 2025-06-03 22:05:22 +02:00
jfb1337
096493aa35
AI: Add AI_SMART_TERA flag to make smarter decisions about when to terastalize. (#6705)
Co-authored-by: jfb1337 <>
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
2025-05-31 09:47:25 +02:00
Pawkkie
99073dc9f2
Fix bad odds / defensive switchin double switch cases (#6927) 2025-05-26 16:59:25 +02:00
AlexOn1ine
b90fdd1b3c Master to upcoming merge 2025-05-26 10:41:11 +02:00
Bassoonian
812bde8a48
Pret merge (24th of May, 2025) (#6978) 2025-05-25 23:08:37 +02:00
Pawkkie
f8b3a02f6c
Backport #6712 Fix party data assignment (#6980) 2025-05-25 10:06:49 +02:00
Alex
d0313ff323
Rename AI test (#6977) 2025-05-24 17:12:48 -04:00
Hedara
dc6e40a839 Fix tests using old item functions 2025-05-24 21:57:51 +02:00
Eduardo Quezada
17e570407e
Remove trailing whitespace (#6968) 2025-05-23 22:33:12 +02:00
Pawkkie
71f1c97d3e
Fix switch AI considering non-choiced SE moves when choiced (#6892) 2025-05-23 14:20:36 +02:00
Alex
87cbb457f1
Fixes AI not seeing primal weather and partner absorbing abilities (#6936) 2025-05-22 17:25:29 -04:00
Alex
f9400332fc
Fixes AI repeated use of weather set up moves (#6963) 2025-05-22 16:50:13 -04:00
Hedara
90aed43c27 Merge branch 'master' into master-upcoming
Conflicts:
	.github/ISSUE_TEMPLATE/01_battle_engine_bugs.yaml
	.github/ISSUE_TEMPLATE/02_battle_ai_issues.yaml
	.github/ISSUE_TEMPLATE/03_feature_requests.yaml
	.github/ISSUE_TEMPLATE/04_other_errors.yaml
	.github/pull_request_template.md
	src/battle_controller_player.c
	src/battle_main.c
	src/battle_script_commands.c
	src/battle_util.c
	src/data/graphics/pokemon.h
	src/data/pokemon/species_info/gen_9_families.h
	test/battle/ability/flower_veil.c
	test/battle/ability/sweet_veil.c
	test/battle/ability/synchronize.c
	test/battle/ability/water_bubble.c
	test/battle/move_effect/fell_stinger.c
	test/battle/move_effect/level_damage.c
	test/battle/move_effect/magic_room.c
	test/battle/move_effect/me_first.c
	test/battle/move_effect/sky_drop.c
	test/battle/move_effect/smack_down.c
	test/battle/move_effect/wish.c
	test/battle/move_flags/ignore_type_if_flying_and_ungrounded.c
2025-05-22 15:41:08 +02:00
Pawkkie
3f89abea74
Fix test not referencing AI_TRAINER_NAME (#6926) 2025-05-19 22:17:46 -07:00
Eduardo Quezada
edf7c67775
Remove non-volatile status EFFECTs (#6772) 2025-05-16 22:52:51 +02:00
surskitty
e44d0326be
AI double battle friendly fire logic improvements (#6766) 2025-05-16 11:41:03 -04:00
innocenthedgehog
49584e134b
Switch AI considers Bulletproof ability (#6872) 2025-05-16 10:35:34 +02:00
Pawkkie
0ea1ebe8de
Fix AI_FLAG_PREDICT_MOVES scoring bug (#6867) 2025-05-15 13:53:51 -04:00
AlexOn1ine
56c9549bbe fix test 2025-05-14 23:45:31 +02:00
AlexOn1ine
1a773a5916 conflicts 2025-05-14 23:21:33 +02:00
Alex
006abe097e
Add AI_FLAG_PREDICT_MOVES (#6551) 2025-05-12 23:10:10 +02:00
Hedara
1abfa7acfa Merge branch 'master' into master-upcoming
Conflicts:
	include/battle.h
	include/constants/battle_string_ids.h
	src/battle_ai_util.c
	src/battle_main.c
	src/battle_util.c
	test/battle/ai/ai.c
2025-05-12 18:21:35 +02:00
Alex
8d5d7c7fca
Fixes ai moves being recorded without correct index (#6803)
Co-authored-by: Bassoonian <iasperbassoonian@gmail.com>
2025-05-10 19:38:48 +02:00
AlexOn1ine
4959187d97 fix conflicts 2025-05-09 21:47:53 +02:00
Pawkkie
c7ee329433 Full functionality 2025-05-08 16:45:10 -04:00
Pawkkie
da047dfd22
Add AI for Zero to Hero Palafin (#6791) 2025-05-08 20:33:27 +02:00
Pawkkie
83b7732fae Store predictingMove, config for chance 2025-05-08 14:19:43 -04:00
Pawkkie
1e57670b34 Merge remote-tracking branch 'upstream/upcoming' into move-prediction 2025-05-08 13:58:18 -04:00
Pawkkie
c8fa4442d9
Adjust switch AI based on move scoring (#6615) 2025-05-06 00:39:44 +02:00
AlexOn1ine
40bf9ae087 conflicts 2025-05-03 10:26:07 +02:00
hedara90
ccda2308a3
Add AI_FLAG_PP_STALL_PREVENTION (#6743)
Co-authored-by: Hedara <hedara90@gmail.com>
2025-05-02 11:30:09 -04:00
AlexOn1ine
057c0f5480 fix test compiling 2025-05-01 17:25:27 +02:00