399 Commits

Author SHA1 Message Date
Eduardo Quezada
32d1777b7a
Use direct config names instead of enum names (#8824) 2026-02-06 11:57:33 +01:00
GGbond
52d61546c9
Fix AI absorber switching for edge cases (#8964) 2026-01-19 13:14:56 -05:00
GGbond
b671adf85f
Fixes Nightmare not affecting Comatose and adds various missing tests (#8859) 2026-01-11 15:02:41 +00:00
amiosi
c506d52d32
Miscellaneous fixes to configs and other values (#8662) 2026-01-03 17:34:30 +01:00
Pawkkie
4f55dade50
Fix Commander Dondozo Switching (#8624) 2025-12-25 22:27:56 +00:00
Eduardo Quezada
66b6664938
B_REDIRECT_ABILITY_IMMUNITY config tests (#8571) 2025-12-18 23:26:50 -05:00
Eduardo Quezada
914a481308
B_BURN_DAMAGE config tests (#8574) 2025-12-18 18:53:35 -05:00
Eduardo Quezada
b78fccdb66
B_STURDY config test (#8565) 2025-12-18 17:24:52 -05:00
Pawkkie
3b5d5d881b
Fix incorrect Spikes reference in switch AI (#8510) 2025-12-12 23:02:41 +01:00
Eduardo Quezada
115694675f
Renamed Config Test system to more general names (#7283) 2025-12-02 11:26:44 -05:00
AlexOn1ine
15d9342fe5 30/11/25 master to upcoming merge 2025-11-30 14:57:50 +01:00
moostoet
bcf90b71a7
Prevent double Dynamax for single-trainer 2v1 multi battles (#8323)
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
2025-11-30 12:44:55 +01:00
Pawkkie
f42117a9d8
Fix switchin KO threshold logic (#8370)
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
2025-11-30 11:56:07 +01:00
FosterProgramming
a4482f0ee2
Rework switch AI and add more tests for ace pokemon flags (#8321) 2025-11-23 19:04:44 +01:00
AlexOn1ine
6a28506ee2 19/11/25 Master to upcoming merge 2025-11-19 18:20:30 +01:00
moostoet
5e40456f45
Fix AI_FLAG_DOUBLE_ACE_POKEMON sending duplicate Pokémon in doubles (#8279) 2025-11-18 19:33:49 +01:00
Martin Griffin
fe85da81fc
AI: Handle MOVE_UNAVAILABLE in last used moves (#8219) 2025-11-12 22:47:50 +01:00
Eduardo Quezada
1545e22d0a
Clean usage of gMovesInfo (#8234) 2025-11-12 19:29:45 +01:00
Hedara
a2ef3284dd Merge branch 'master' into master-to-upcoming
Conflicts:
	data/battle_scripts_1.s
	include/battle_util.h
	include/constants/battle.h
	src/battle_script_commands.c
	src/battle_util.c
2025-10-29 18:42:59 +01:00
grintoul
a9fc0b28c9
Corrects battler partner identification in battle_ai_switch_items.c (#8071) 2025-10-28 19:23:41 +01:00
Bassoonian
f7cbe4853b
Add type enum (#8054) 2025-10-27 16:41:22 +00:00
Bassoonian
be23dfdf2a
Even more enums and documentation (#8029) 2025-10-25 14:37:47 +02:00
AlexOn1ine
e365add4cf 15/10/25 Master to upcoming merge 2025-10-15 21:31:00 +02:00
Alex
eee546df06
Item battle effect refactor (#7857) 2025-10-12 08:59:33 +02:00
Maxime Grouazel
81af2be16e
Fix AI seeing priority wrong for players choice lock (#7899)
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
2025-10-10 20:06:35 +02:00
surskitty
f0444f0d3f
Improved AI for status curing; trainer items, Purify, Smelling Salts, Sparkling Aria (#7853) 2025-10-06 23:52:27 +02:00
AlexOn1ine
870b93aad9 06/10/25 Master to upcoming merge 2025-10-06 19:42:42 +02:00
khbsd
e385c7f59f
feat: change defines in constants/abilities.h to an enum (#7006)
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
2025-09-29 21:35:09 +02:00
Alex
a818b97732
GetBattlerHoldEffect clean up (#7819)
Co-authored-by: Bassoonian <iasperbassoonian@gmail.com>
2025-09-29 17:16:15 +02:00
khbsd
a4ecd7338b
fix: seen flags for first mon in enemy party (#7791)
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
2025-09-28 09:53:55 +02:00
Alex
5e07d4a509
Use stored values for ai switch-in effectiveness checks (#7794)
Co-authored-by: Bassoonian <iasperbassoonian@gmail.com>
2025-09-25 14:41:06 +02:00
Alex
66b7a7bf1e
Improve ability/heldEffect access for IsBattlerGrounded func (#7753) 2025-09-24 20:35:12 +02:00
Pawkkie
1ca5b23f19
Fix abusable two-turn-move switch behaviour (#7770) 2025-09-22 19:47:23 +02:00
AlexOn1ine
ce52d83343 25/08/25 Master merge 2025-08-25 17:30:38 +02:00
Alex
e3178d3ff6
Fix duplicate switch in after faint (#7600) 2025-08-24 13:06:13 -04:00
Pawkkie
e60b9e979f
Fix wrong battler argument in GetBattleMovePriority call (#7576) 2025-08-18 19:45:41 +02:00
Pawkkie
5c70eeb7ed
Fix switch AI not seeing its own move PP (#7578) 2025-08-18 19:45:18 +02:00
Alex
f4c91b5539
Convert statuses3 to volatiles (#7514) 2025-08-11 23:19:36 +02:00
Alex
38cfc4bacf
Modify move prediction to work in doubles (#7087) 2025-08-11 12:26:41 -04:00
AlexOn1ine
bd919e3219 11/08/25 Master to upcoming merge 2025-08-11 08:31:12 +02:00
Eduardo Quezada
0b299b3ffd
Fixed most failed tests with GEN_LATEST GEN_8 (#7498) 2025-08-08 09:44:12 +02:00
Pawkkie
6158d21448
Fix GetSwitchinHitsToKO one shot heal calcs (#7502) 2025-08-07 17:27:35 +02:00
Pawkkie
13a8f655b5
Fix Bad Odds not seeing damage properly (#7492) 2025-08-06 17:29:37 +02:00
Pawkkie
3f9359765c
Fix doubles switch AI to use new type matchup system (#7495) 2025-08-06 17:20:03 +02:00
Alex
acc82e7d79
Convert Status4 to volatiles (#7411)
Co-authored-by: hedara90 <90hedara@gmail.com>
2025-08-05 19:28:33 +02:00
Pawkkie
b12fcd8c7e
Fix dynamic move types in switching (#7415) 2025-07-26 19:59:17 +02:00
Pawkkie
57fda0d060
Improve AI's priority handling (#7337) 2025-07-26 18:22:47 +02:00
Alex
e7cf162180
Fixes various Choice lock issues (#7383) 2025-07-25 10:18:30 -04:00
Pawkkie
a92f432daf
Improve AI type matchup calcs (#7364)
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
2025-07-20 12:53:14 +02:00
Pawkkie
bc4ad07f47 Merge branch 'master' into master-to-upcoming 2025-07-13 13:34:35 -04:00