198 Commits

Author SHA1 Message Date
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
AlexOn1ine
182d42642d Move out ai struct out of BattleResources 2025-05-01 11:27:48 +02:00
Eduardo Quezada
d2a4b5ef84
Changed Tackle for Scratch in tests (#6730) 2025-04-30 17:18:52 -04:00
Pawkkie
787a8a0d9d Merge remote-tracking branch 'upstream/upcoming' into move-prediction 2025-04-28 13:23:33 -04:00
Pawkkie
96a8035dec
Fix party data assignment (#6712) 2025-04-28 08:48:21 +02:00
Pawkkie
4970b3bd95 Merge remote-tracking branch 'upstream/upcoming' into move-prediction 2025-04-28 00:33:42 -04:00
AlexOn1ine
e2e012c3a9 conflicts 2025-04-21 15:50:57 +02:00
Eduardo Quezada
c650199909
Added missing gMovesInfo encapsulation (#6656) 2025-04-20 22:36:27 +02:00
AlexOn1ine
fd0766c7fa 17-04-25-master-merge 2025-04-17 14:14:37 +02:00
Pawkkie
3b53995691
Air Balloon AI tests (#6604) 2025-04-13 21:04:58 +02:00
Pawkkie
54928726cb
AI smarter status handling (#6550) 2025-04-08 17:47:45 +02:00
Pawkkie
11d26af7a8 Initial attempt, doesn't see move effectiveness / damage 2025-04-08 00:15:28 -04:00
Pawkkie
d7a6e0bea8 Initialize move scores 2025-04-07 23:22:01 -04:00
Pawkkie
9cb96235f9
Add basic Unaware check bad move scoring (#6524) 2025-04-02 18:18:33 -04:00
AlexOn1ine
ccebebf64f 31-03-25 Master merge 2025-03-31 18:23:46 +02:00
Pawkkie
1c0e5bb0e1 fix hit escape switching 2025-03-29 14:18:20 -04:00
Pawkkie
ddbdc1f716 Fixes across the board 2025-03-29 13:54:44 -04:00
Pawkkie
6a08b8fdec add gastly type assumption 2025-03-22 17:33:43 -04:00
Pawkkie
11a7ea99f1 fix choice switches 2025-03-22 17:23:13 -04:00
Alex
c707df358e
Clean up AI code duplication and unify checks (#6348) 2025-03-20 22:50:01 +01:00
Pawkkie
4c18e88282
Improve "all moves bad" switching (#6453) 2025-03-20 16:43:56 +01:00
AlexOn1ine
3c632b8b44 19-03-25 master to upcoming merge 2025-03-19 17:12:47 +01:00
Pawkkie
411a236ce7
Fix AI using Scald / fire moves against frozen / frostbitten targets (#6442) 2025-03-19 09:32:59 +01:00
Alex
6031bb2a78
Split ai function IsBattlerTrapped (#6438) 2025-03-18 12:00:11 -04:00
Pawkkie
3fa57381cd
Fix Focus Sash being considered in switch AI's hits to KO calcs (#6436) 2025-03-17 21:01:03 +01:00
innocenthedgehog
752181bbcb
Switch AI considers Wind Rider (#6391) 2025-03-07 12:01:27 -05:00
Pawkkie
6500f4653f
Switch AI will factor in player's choice lock when determining hits to KO (#6343) 2025-03-07 11:44:59 +01:00
Eduardo Quezada
fe7ed22f5b Merge branch '_RHH/master' into _RHH/upcoming 2025-02-20 19:44:00 -03:00
moostoet
7cd614a0cd
Fix AI wrongly thinking it strikes first with priority even if player is using priority themselves (#6274) 2025-02-15 16:48:26 -05:00
Pawkkie
f851fb536a
Improve Yawn and Status Switching (#6202)
Co-authored-by: Bassoonian <iasperbassoonian@gmail.com>
2025-02-13 17:34:40 +01:00
Pawkkie
579fa6410d
Switch chance config support (#6187) 2025-02-10 00:30:54 +01:00
Pawkkie
bd50fe6014
Fix AI switching in absorbing mon incorrectly (#6227) 2025-02-09 22:28:06 +01:00
Eduardo Quezada
a2ad5d2ca3
Heal Bell/Aromatherapy/Sparkly Swirl improvements and fixes (#6210) 2025-02-09 21:54:03 +01:00
Eduardo Quezada
621d2ef83d
Fixed missing move encapsulation in upcoming (#6226) 2025-02-09 20:03:53 +01:00