sovereignx/test/battle/move_effect
hedara90 ebdc9ffc39
Fixed some moves' on-hit effects bypassing Substitutes where they shouldn't and some other things discovered along the way (#4558)
* Fixed some moves' on-hit effects bypassing Substitutes where they shouldn't.
Fixed Sparkling Aria interaction with Shield Dust in Singles vs Doubles.
Fixed Wake-Up Slap and Smelling Salts getting boosted damage where they shouldn't vs Substitutes.

* Cleaned up check for Sparkling Aria+Shield Dust interaction and fixed for agbcc.
Fixed logic for checking if moves should do extra damage on statused targets.
Wrote tests for Wake-Up Slap and Smelling Salts receicing extra damage on statused targets.
Wrote tests to check Thousand Arrows type effectiveness vs ungrounded Flying types.

* Update src/battle_util.c

Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>

* Update src/battle_script_commands.c

Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>

* Update src/battle_script_commands.c

Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>

* Update test/battle/ability/shield_dust.c

Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>

* Update test/battle/item_effect/covert_cloak.c

Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>

* Update test/battle/item_effect/covert_cloak.c

Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>

* Update test/battle/item_effect/covert_cloak.c

Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>

* Update test/battle/move_effect/smelling_salts.c

Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>

* Update test/battle/move_effect/thousand_arrows.c

Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>

* Update test/battle/move_effect/wake_up_slap.c

Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>

* Update test/battle/move_effect/wake_up_slap.c

Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>

* Update test/battle/move_effect/wake_up_slap.c

Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>

---------

Co-authored-by: Hedara <hedara90@gmail.com>
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
2024-05-13 13:33:04 +02:00
..
absorb.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
accuracy_down.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
after_you.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
ally_switch.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
assist.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
attack_down.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
attack_up.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
attack_up_user_ally.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
aura_wheel.c Renamed "MoveHasMoveEffect" functions 2024-02-26 14:21:38 +09:00
aurora_veil.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
beak_blast.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
belly_drum.c Fixed moves with HP cost triggering effects where they shouldn't (#4533) 2024-05-09 15:22:48 +02:00
bide.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
brick_break.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
change_type_on_item.c Small Battle Test reorganization (#4504) 2024-05-06 09:36:52 +02:00
chilly_reception.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
collision_course.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
confuse.c Merge branch '_RHH/master' into _RHH/upcoming 2024-02-19 10:13:13 -03:00
corrosive_gas.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
court_change.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
defense_down.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
defense_up.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
defog.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
doodle.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
dream_eater.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
embargo.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
encore.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
evasion_up.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
explosion.c Explosion and Mind Blown / Steel Beam refactor (CFRU port) (#4516) 2024-05-12 11:41:18 -04:00
fail_if_not_arg_type.c Small Battle Test reorganization (#4504) 2024-05-06 09:36:52 +02:00
fickle_beam.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
fillet_away.c Fixed moves with HP cost triggering effects where they shouldn't (#4533) 2024-05-09 15:22:48 +02:00
fling.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
focus_punch.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
future_sight.c Fixes Future Sight freeze/weird behavior (#4543) 2024-05-10 23:00:32 +02:00
gastro_acid.c Small Battle Test reorganization (#4504) 2024-05-06 09:36:52 +02:00
glaive_rush.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
haze.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
heal_pulse.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
healing_wish.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
hit_escape.c Explosion and Mind Blown / Steel Beam refactor (CFRU port) (#4516) 2024-05-12 11:41:18 -04:00
hit_set_remove_terrain.c Fixed Steam Roller AI check affecting Terrain setting effects (#4498) 2024-05-06 00:54:28 +02:00
hit_switch_target.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
hydro_steam.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
ion_deluge.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
ivy_cudgel.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
knock_off.c Fixed some moves' on-hit effects bypassing Substitutes where they shouldn't and some other things discovered along the way (#4558) 2024-05-13 13:33:04 +02:00
last_resort.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
last_respects.c Last Respects effect + Fixed Supreme Overlord (#4151) 2024-02-10 10:58:41 +01:00
leech_seed.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
max_hp_50_recoil.c Explosion and Mind Blown / Steel Beam refactor (CFRU port) (#4516) 2024-05-12 11:41:18 -04:00
metronome.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
mind_blown.c Explosion and Mind Blown / Steel Beam refactor (CFRU port) (#4516) 2024-05-12 11:41:18 -04:00
mirror_move.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
moonlight.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
morning_sun.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
multi_hit.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
octolock.c fixes tests 2023-10-25 10:18:59 +02:00
ohko.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
photon_geyser.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
plasma_fists.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
pledge.c Renamed "MoveHasMoveEffect" functions 2024-02-26 14:21:38 +09:00
population_bomb.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
protect.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
pursuit.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
quash.c Fixes Quash (#4419) 2024-04-21 15:40:35 +02:00
rage_fist.c Fill data for placeholder species (#4281) 2024-03-16 18:38:43 +01:00
recoil_if_miss.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
reflect.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
reflect_type.c Made Reflect Type handle 3rd types (#3303) 2023-10-23 10:08:36 +01:00
relic_song.c Renamed "MoveHasMoveEffect" functions 2024-02-26 14:21:38 +09:00
revival_blessing.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
roar.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
role_play.c Small Battle Test reorganization (#4504) 2024-05-06 09:36:52 +02:00
roost.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
salt_cure.c Fixed some moves' on-hit effects bypassing Substitutes where they shouldn't and some other things discovered along the way (#4558) 2024-05-13 13:33:04 +02:00
semi_invulnerable.c Small Battle Test reorganization (#4504) 2024-05-06 09:36:52 +02:00
shed_tail.c Fixed moves with HP cost triggering effects where they shouldn't (#4533) 2024-05-09 15:22:48 +02:00
shell_trap.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
sleep.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
smack_down.c Fixed some moves' on-hit effects bypassing Substitutes where they shouldn't and some other things discovered along the way (#4558) 2024-05-13 13:33:04 +02:00
smelling_salts.c Fixed some moves' on-hit effects bypassing Substitutes where they shouldn't and some other things discovered along the way (#4558) 2024-05-13 13:33:04 +02:00
sparkling_aria.c Fixed some moves' on-hit effects bypassing Substitutes where they shouldn't and some other things discovered along the way (#4558) 2024-05-13 13:33:04 +02:00
special_attack_down.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
special_attack_up_3.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
spikes.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
spit_up.c Small Battle Test reorganization (#4504) 2024-05-06 09:36:52 +02:00
stealth_rock.c Fixes Eject Items causing wrong pokemon to take damage from entry hazards (#4465) 2024-04-29 23:16:58 +02:00
sticky_web.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
stockpile.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
strength_sap.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
stuff_cheeks.c Fixes bug preventing Belch from usage after Stuff Cheeks (#4376) 2024-04-11 10:42:55 +02:00
substitute.c Fixed moves with HP cost triggering effects where they shouldn't (#4533) 2024-05-09 15:22:48 +02:00
swallow.c Small Battle Test reorganization (#4504) 2024-05-06 09:36:52 +02:00
synthesis.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
tailwind.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
take_heart.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
teatime.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
telekinesis.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
teleport.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
thousand_arrows.c Fixed some moves' on-hit effects bypassing Substitutes where they shouldn't and some other things discovered along the way (#4558) 2024-05-13 13:33:04 +02:00
thunder.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
tidy_up.c Adds Tidy Up + minor Dragon Cheer follow up (#4136) 2024-02-18 20:00:36 +01:00
torment.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
toxic.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
toxic_spikes.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
triple_kick.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
two_turns_attack.c Small Battle Test reorganization (#4504) 2024-05-06 09:36:52 +02:00
upper_hand.c Renamed "MoveHasMoveEffect" functions 2024-02-26 14:21:38 +09:00
uproar.c Merge branch '_RHH/master' into _RHH/upcoming 2024-02-16 11:30:01 -03:00
wake_up_slap.c Fixed some moves' on-hit effects bypassing Substitutes where they shouldn't and some other things discovered along the way (#4558) 2024-05-13 13:33:04 +02:00
weather_ball.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00