DizzyEggg
438f478146
Fix comatose transform gastro acid interaction ( #4852 )
2024-06-21 12:19:43 +02:00
DizzyEggg
d0bb03e5a9
Fix AI's right slot switching-in too early ( #4851 )
...
* apply safe switching to trainer doubles battles - with a config
* get rid of the config
* make it compile
2024-06-21 12:17:12 +02:00
sneed
c31f982a7b
Fix fury cutter scaling up to 640 power ( #4846 )
...
* Fix fury cutter scaling up to 640 power
* Replace three instances of int i with one int turn
* dynamic test
2024-06-21 08:15:00 +02:00
DizzyEggg
c3b1701c16
Contrary stat drop anim with Spectral Thief ( #4824 )
...
* Contrary stat drop anim with Spectral Thief
* Are you happy now agbcc? I hope I w
2024-06-19 13:40:46 +02:00
kittenchilly
74f53a7e18
Fix caught wild pokemon not restoring their used held item ( #4803 )
...
* Fix caught wild pokemon not restoring their used held item
* Actually we can use the same struct
2024-06-18 20:31:03 +02:00
sneed
b6d3bdf622
Confusion, cursed body and poison touch trigger chance fixes and tests ( #4831 )
...
* accurate confusion chance and a test
* Accurate Poison Touch chance and tests
* Accurate cursed body chance
* Create cursed_body.c
2024-06-18 20:07:40 +02:00
DizzyEggg
203318b9a2
Get rid of hardcoded stat raise anim values ( #4825 )
2024-06-17 13:51:04 +02:00
sneed
e64a2f3e25
Roamer's frostbite carries over between battles ( #4822 )
2024-06-17 11:44:47 +02:00
kittenchilly
b8607fe3aa
Fix Poltchageist not always producing counterfeit offspring ( #4812 )
2024-06-15 18:31:29 -04:00
sneed
e18150fb35
Change code to reflect that Shell Side Arm's default category is special ( #4806 )
...
* swapped cat is physical
* Update battle_util.c
* Update src/battle_util.c
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
---------
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
2024-06-15 15:35:43 +02:00
DizzyEggg
de7a4e2328
Fix Encore turn amount bug ( #4802 )
...
* Encore 3 turns
* remove duplicate
2024-06-14 13:15:38 +02:00
DizzyEggg
2716ec5b03
Fix Pursuit not getting Choice-locked on switch-out ( #4801 )
...
* Fix Pursuit not getting Choice-locked on switch-out
* use label
2024-06-14 12:46:03 +02:00
DizzyEggg
c7224d9ca7
Fix Relic Song transforming species other than Meloetta ( #4799 )
2024-06-14 10:24:57 +02:00
DizzyEggg
1a4f277d6f
Tests for Body Press + body press interaction with Wonder room ( #4792 )
2024-06-14 09:43:10 +02:00
DizzyEggg
4b1ff3ad7f
fix starting terrain making all other terrains infinite ( #4795 )
2024-06-14 09:31:21 +02:00
DizzyEggg
84d13d0abf
Fix Smack Down anim + move anim tests ( #4774 )
...
* Fix Smack Down anim + move anim tests
* really agbcc
* fix undefined reference
* hopefully everything works
2024-06-13 15:30:28 -04:00
sneed
f868de066d
fix passing hold effect instead of ability ( #4789 )
2024-06-13 16:40:53 +02:00
sneed
c2ca22d474
Various small doubles AI fixes ( #4786 )
...
* fix AI thinking defiant procs off ally moves
* AI see's partner's ability for swagger and flatter
2024-06-13 13:52:13 +02:00
DizzyEggg
8ff1cbed2a
update shiny data for battle mons ( #4788 )
2024-06-13 13:45:56 +02:00
DizzyEggg
8e41b9857f
Fix Revive in double battles ( #4784 )
2024-06-13 10:41:17 +02:00
DizzyEggg
21339cf272
Fix AI not recognising Volt Absorb/FlashFire ( #4781 )
2024-06-12 23:02:45 +02:00
sneed
000f144465
AI actually avoids contact vs rocky helmet/rough skin ( #4779 )
2024-06-12 20:54:34 +02:00
DizzyEggg
a17259763c
Fix Baton Pass breaking on Memento ( #4773 )
...
* Fix Baton Pass breaking on Memento
* doubled headers
2024-06-12 13:17:18 +02:00
kittenchilly
251019d63d
Update wild held items to Gen 9 ( #4769 )
...
* Update wild held items to Gen 9
* Update gen_1_families.h
* Update gen_5_families.h
2024-06-12 11:33:03 +02:00
Alex
9c72392891
Fixes Shell Side Arm ( #4753 )
...
* Fixes Shell Side Arm
* Fixes to random call
* hardcoded the effect to the move
* minor change
* minor change 2
* applied reviews
2024-06-12 11:21:44 +02:00
cawtds
4724b5dfd6
Improved Surf/Thunderbolt test ( #4764 )
...
* improved Surf/Thunderbolt test that previously relied on correct AI guess
* remove unnecessary mod
* fixed infinite rng loop
* wrong ability num and readability
* Update src/battle_ai_util.c
---------
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
2024-06-12 09:09:15 +02:00
Bassoonian
341fa3692c
Make Tandemaus only evolve at the end of battles ( #4759 )
2024-06-12 08:43:51 +02:00
sneed
d8685bb3b1
tar shot works properly
2024-06-10 22:07:15 +03:00
sneed
1ca4676c4c
fix ai crit calculations
2024-06-09 23:09:34 +03:00
sneed
db15190508
Use GetBattlerAbility instead of the ability field in more places ( #4746 )
...
* Fix Skill Link ignoring gastro acid, neutralising gas
* Fix own tempo stopping berserk gene confusion when disabled
2024-06-08 22:58:37 +02:00
Bassoonian
568ce39c5d
Adds forbidden status parameter to FORM_CHANGE_ITEM_USE ( #4738 )
2024-06-08 07:36:39 +02:00
sneed
f1911dae59
Fix mycelium might and ability shield ( #4740 )
...
* Fix mycelium might and ability shield
* fix check
2024-06-08 07:27:44 +02:00
sneed
2cc2dc01ca
Fix daycare move transferring between evolved mons and allow sharing moves between different forms of the same species ( #4479 )
...
* Fix daycare move transferring between evolved mons
Also allow sharing moves between different forms
* Make sure Snorlax gets Snorlax's egg moves instead of Munchlax's
* Use GET_BASE_SPECIES_ID
* Actually fix Snorlax/Roselia/etc behavior
* remove preproc checks
* rename ambiguous GetEggMovesSpecies function
* remove extra indentation, add incense breeding check
* update comment
* Update src/daycare.c
---------
Co-authored-by: Bassoonian <iasperbassoonian@gmail.com>
2024-06-07 21:54:58 +02:00
sneed
dc742b3077
Fix Berserk, Angel Shell, Wimp Out, Emergency Exit HP threshold ( #4724 )
...
* Fix HadMoreThanHalfHpNowHasLess
* rename the functions
* formatting
2024-06-07 21:54:25 +02:00
Bassoonian
d6422da284
Fix partner palette problem ( #4736 )
2024-06-07 21:05:16 +02:00
Bassoonian
0fda9d6cd6
Fix Hyper Potion price ( #4737 )
2024-06-07 21:04:03 +02:00
sneed
1241cbe79f
FIx mummy and lingering aroma abilities ( #4731 )
...
* FIx mummy ability
..and lingering aroma.
Adds tests for both.
* merge the tests
* new line
* add 2 more tests
Mummy and Lingering Aroma don't replace each other
Mummy doesn't replace abilities that can't be suppressed
2024-06-07 11:46:07 +02:00
sneed
7fd0239370
Rampage moves always confuse on final turn ( #4722 )
...
* rampage moves confuse on the final turn
* fix B_RAMPAGE_CANCELLING < GEN_5
* Remove pointless assumes
2024-06-05 05:38:04 +02:00
kittenchilly
a5b75746ea
Pawmi
2024-06-03 14:17:34 -05:00
kittenchilly
ea617ccd7a
Okidogi
2024-06-03 13:56:37 -05:00
kittenchilly
33972cedf3
Pawmo
2024-06-03 13:48:36 -05:00
hedara90
5bf7f08ad2
Added Normal and Terastal Terapagos sprites ( #4691 )
...
Co-authored-by: Hedara <hedara90@gmail.com>
2024-06-03 13:33:42 -05:00
cawtds
7404d03ea9
fixed potential undefined behaviour when using escape rope ( #4705 )
2024-06-03 00:58:24 +02:00
cawtds
658b437777
fixed honey use altering tiles ( #4703 )
2024-06-02 22:38:52 +02:00
sneed
ad8576d548
Fix some abilities preventing stat dropping move effects when used on self ( #4696 )
...
* Move SOLAR_POWER_HP_DROP label
* Abilities don't prevent self stat dropping effects
Hyper cutter does not stop MOVE_EFFECT_ATK_MINUS_1 and MOVE_EFFECT_ATK_MINUS_2.
Big Pecks does not stop MOVE_EFFECT_DEF_MINUS_1 and MOVE_EFFECT_DEF_MINUS_2.
Keen Eye and Illuminate do not stop MOVE_EFFECT_ACC_MINUS_1 and MOVE_EFFECT_ACC_MINUS_2.
2024-06-02 18:20:00 +02:00
Alex
86b76134e3
replace gCurrentMove with move in CalcCritChanceStageArgs ( #4687 )
...
AI got the wrong calc when the global was used.
2024-06-02 15:31:10 +02:00
cawtds
9b10e13336
Fixed regional variant inheritance and pokeball inheritance ( #4695 )
...
* fixed regional variant inheritance and pokeball inheritance
* species inheritance: consider cases with different evolutions but same base species e.g. Persian and Perrserker
ball inheritance: fix inheritance for regional forms
2024-06-02 14:04:00 +02:00
Isaac Rivera
43e2a973fc
add check for held item before using poltergeist and a check that it is the first turn for moves that are first turn only ( #4693 )
2024-06-02 01:00:17 +02:00
Eduardo Quezada
0a8284ce9f
Added missing Move Effect TODO tests - Volume B ( #4682 )
...
* Added missing Move Effect TODO tests - Volume B
* Apply suggestions from code review
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
* Removed unused bulldoze effect file
* Removed individual tests for Baton Pass + Status1 in favor of the existing single test
---------
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
2024-06-01 15:07:51 +02:00
WillKolada
0ed8d09d47
Revert Dynamax HP on fainting ( #4681 )
...
* Revert Dynamax HP on fainting
Calls UndoDynamax whenever a mon faints to ensure that its HP is reverted and the relevant data is cleared. Updates UndoDynamax to CalculateMonStats after applying the HP reversion to prevent fainted mons from retaining their boosted Max HP until the end of the battle.
* Update src/battle_main.c
---------
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
2024-05-31 22:33:31 +02:00