631 Commits

Author SHA1 Message Date
GGbond
33b89f227d
Fix AI Sheer Force checks to allow Order Up’s Commander stat boost (#9250) 2026-02-18 15:39:55 +01:00
GGbond
9119a6cc53
Fix AI semi-invulnerable move handling and simplify switching logic (#9180) 2026-02-16 11:16:28 -05:00
GGbond
75500c86ab
Add missing weather checks for AI sandstorm/hail damage helpers (#9155) 2026-02-08 11:50:59 +01:00
Eduardo Quezada
32d1777b7a
Use direct config names instead of enum names (#8824) 2026-02-06 11:57:33 +01:00
GGbond
08dd7da30c
Fix AI wakeup-turn detection to consider Early Bird (#9053) 2026-01-29 18:33:36 +01:00
GGbond
5308124191
Align Crafty Shield with wiki and refine IsAllyProtectingFromMove (#8990) 2026-01-22 17:36:07 +01:00
Bassoonian
6f74c1e402
Fix wrong cases of DamageContext (#8895) 2026-01-12 11:01:15 +00:00
GGbond
b671adf85f
Fixes Nightmare not affecting Comatose and adds various missing tests (#8859) 2026-01-11 15:02:41 +00:00
grintoul
02afaf2a66
Prevent AI seeing Pollen Puff damage on its ally (#8693) 2025-12-27 23:39:45 +01:00
ghostyboyy97
a901d227cc
fix (scoring): AI_IsMoveEffectInPlus - AI should not see secondary effect of Sheer Force boosted moves as beneficial (#8579)
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
2025-12-19 12:40:46 -05:00
surskitty
cc6ac23185
Fixing crash from Last Resort with Normalium Z in certain damage thresholds (#8583) 2025-12-18 23:57:03 -05:00
Eduardo Quezada
66b6664938
B_REDIRECT_ABILITY_IMMUNITY config tests (#8571) 2025-12-18 23:26:50 -05:00
Eduardo Quezada
b78fccdb66
B_STURDY config test (#8565) 2025-12-18 17:24:52 -05:00
Eduardo Quezada
26688dd1ce
Fixed AI_GetSwitchinWeather not considering CONFIG_SNOW_WARNING (#8533) 2025-12-14 11:59:45 -05:00
GGbond
04b26b752e
Respect beneficial status in healing moves and add tests (#8478) 2025-12-09 10:58:11 -05:00
ghostyboyy97
7e0b1de2ae
fix (setup): ignore self-speed drop when checking speed control on KO threshold change (#8409)
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
2025-12-02 16:27:46 -05:00
Eduardo Quezada
115694675f
Renamed Config Test system to more general names (#7283) 2025-12-02 11:26:44 -05:00
AlexOn1ine
68300e0f9a 27/11/25 Master to upcoming merge 2025-11-27 13:39:12 +01:00
moostoet
fbc640d692
Refactor Beat Up handling for Gen 3/4 defaults, fix crit check, and expand test coverage (#8307) 2025-11-25 22:18:51 +01:00
FosterProgramming
a4482f0ee2
Rework switch AI and add more tests for ace pokemon flags (#8321) 2025-11-23 19:04:44 +01:00
Eduardo Quezada
51a750e61a
Finished fixing tests when setting GEN_LATEST to GEN_5 (#8263) 2025-11-23 12:04:36 +01:00
AlexOn1ine
6a28506ee2 19/11/25 Master to upcoming merge 2025-11-19 18:20:30 +01:00
Alex
ea442bca6d
Revert gBattleTurnCounter change (#8197) 2025-11-13 11:25:02 +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
Martin Griffin
12b65b565b
DamageContext: chosenMove (#8224) 2025-11-11 21:59:18 +01:00
Alex
bb11d96d86
Merge branch 'upcoming' into 111125 2025-11-11 19:04:54 +01:00
Alex
f28abcab6a
Micro clean up in BattleStruct (#8177) 2025-11-11 17:42:27 +01:00
AlexOn1ine
93cc143134 conflicts 2025-11-11 13:12:00 +01:00
Maxime Grouazel
927101a5fc
Added check for parental bond killing through sturdy (#8206)
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
2025-11-11 00:10:53 +01:00
PhallenTree
649798449e
Powder Move blocking cleanup (#8194) 2025-11-10 21:01:35 +01:00
FosterProgramming
43f9a78da5
Fix recharge moves + add recharge move tests (#8181) 2025-11-09 17:46:22 +01:00
ghostyboyy97
0bd9dd6ee8
fix (contrary): Contrary stat down handling in MoveEffectInPlus (#8165)
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
2025-11-08 17:21:16 +01:00
grintoul1
c230e54678 Master to Upcoming merge 20251107 2025-11-07 22:45:57 +00:00
ghostyboyy97
3c72ca1158
fix (AI scoring): shield dust considerations, IsMoveEffectInMinus self effect edge case, hitsToKO zero-case consideration (#8126)
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
2025-11-04 09:35:43 +01:00
Alex
ea3b72f43f
Initialize DamageContext on declaration to zero (#8076) 2025-10-29 19:04:56 +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
Alex
dd875b87bc
Combine Simple Beam and Worry Seed into one effect (#8039)
Co-authored-by: PhallenTree <168426989+PhallenTree@users.noreply.github.com>
2025-10-29 15:20:12 +01:00
Bassoonian
f7cbe4853b
Add type enum (#8054) 2025-10-27 16:41:22 +00:00
PhallenTree
782c559a20
Fixes Ruin field statuses negation conditions + upcoming cleanup (#8042) 2025-10-26 22:41:16 +01:00
Bassoonian
be23dfdf2a
Even more enums and documentation (#8029) 2025-10-25 14:37:47 +02:00
Alex
cb0d503f66
Decouple passive hp updates from move damage updates (#7942) 2025-10-19 16:40:13 +02:00
AlexOn1ine
e365add4cf 15/10/25 Master to upcoming merge 2025-10-15 21:31:00 +02:00
Alex
a77f8d97a1
Optimize GetWhichBattlerFasterOrTies (#7953) 2025-10-15 15:08:16 +02:00
surskitty
5090432ff1
Improving the checks for the AI to avoid Encore; adding RISK_ENCORE_CHANCE config. (#7929) 2025-10-12 13:24:24 -04:00
surskitty
a5f0686261
Weather/Terrain AI touch-ups. (#7933) 2025-10-12 19:23:48 +02:00
Alex
eee546df06
Item battle effect refactor (#7857) 2025-10-12 08:59:33 +02:00
surskitty
94a6e126f3
Changing all HasBattlerSideAbility to AI_IsAbilityOnSide. (#7927) 2025-10-11 23:47:48 +02:00
DizzyEggg
ffe0936ff1
Fix ShouldPivot overwriting random memory (#7882)
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
2025-10-08 19:44:31 +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