pokerogue/src/phases
Desroi 7873181726
[Bug] Fix Recoil & Shell Bell not applying when hitting Substitute
https://github.com/pagefaultgames/pokerogue/pull/5712

* Created Double Edge testing for recoil damage on substitutes

* Changed the logic for substitute damage

* Made testing for the updated substitute logic

* Update test formatting

* Fixed error in damage logic

* Apply Biome

* Fix test file

* Apply suggestion and update test

* Remove obsolete workaround and console logs

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-08-07 22:46:19 -05:00
..
activate-priority-queue-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
add-enemy-buff-modifier-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
attempt-capture-phase.ts [Challenge] Add Nuzlocke-related Challenges (#6186) 2025-08-07 18:47:28 -06:00
attempt-run-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
battle-end-phase.ts [Bug] Protect now tracks success chance properly (#5869) 2025-08-05 07:35:14 +02:00
battle-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
berry-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
check-interlude-phase.ts [Balance] End of turn triggers won't occur when you end a biome (#6169) 2025-07-29 22:50:57 +00:00
check-status-effect-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
check-switch-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
command-phase.ts [Docs/Misc/i18n] Fix typos (#6231) 2025-08-07 18:56:50 -06:00
common-anim-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
damage-anim-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
egg-hatch-phase.ts [UI/UX] Clean up some magic numbers (#6165) 2025-08-07 18:49:32 -06:00
egg-lapse-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
egg-summary-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
encounter-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
end-card-phase.ts [UI/UX] Clean up some magic numbers (#6165) 2025-08-07 18:49:32 -06:00
end-evolution-phase.ts [Misc] Add phase#is method to help reduce circular imports (#5868) 2025-06-06 21:08:23 +00:00
enemy-command-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
enemy-party-member-pokemon-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
evolution-phase.ts [UI/UX] Clean up some magic numbers (#6165) 2025-08-07 18:49:32 -06:00
exp-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
faint-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
field-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
form-change-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
game-over-modifier-reward-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
game-over-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
hide-ability-phase.ts [Misc] Add phase#is method to help reduce circular imports (#5868) 2025-06-06 21:08:23 +00:00
hide-party-exp-bar-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
learn-move-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
level-cap-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
level-up-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
load-move-anim-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
login-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
message-phase.ts [Refactor] Ensure that new phases are created through the phase manager 2025-06-07 23:55:30 -07:00
modifier-reward-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
money-reward-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
move-anim-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
move-charge-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
move-effect-phase.ts [Bug] Fix Recoil & Shell Bell not applying when hitting Substitute 2025-08-07 22:46:19 -05:00
move-end-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
move-header-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
move-phase.ts [Misc] Replace Moves.MOVE_NAME with MoveId.MOVE_NAME in comments 2025-08-04 21:24:58 -07:00
mystery-encounter-phases.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
new-battle-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
new-biome-encounter-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
next-encounter-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
obtain-status-effect-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
party-exp-phase.ts [Misc] Add phase#is method to help reduce circular imports (#5868) 2025-06-06 21:08:23 +00:00
party-heal-phase.ts [Challenge] Add Nuzlocke-related Challenges (#6186) 2025-08-07 18:47:28 -06:00
party-member-pokemon-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
player-party-member-pokemon-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
pokemon-anim-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
pokemon-heal-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
pokemon-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
pokemon-transform-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
positional-tag-phase.ts [Move Bug] Fully implemented Future Sight, Doom Desire; fixed Wish Double battle oversight (#5862) 2025-07-30 22:43:06 -06:00
post-game-over-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
post-summon-activate-ability-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
post-summon-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
post-turn-status-effect-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
quiet-form-change-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
reload-session-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
reset-status-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
return-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
revival-blessing-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
ribbon-modifier-reward-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
scan-ivs-phase.ts [Refactor] Refactor UI text ts (#5946) 2025-07-27 17:46:56 +00:00
select-biome-phase.ts [Docs/Misc/i18n] Fix typos (#6231) 2025-08-07 18:56:50 -06:00
select-challenge-phase.ts [Misc] Add phase#is method to help reduce circular imports (#5868) 2025-06-06 21:08:23 +00:00
select-gender-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
select-modifier-phase.ts [Bug] Fix return in applyChosenModifier; prevent race condition in modifier-ui-handler (#6099) 2025-07-16 17:25:58 +00:00
select-starter-phase.ts [Challenge] Add Nuzlocke-related Challenges (#6186) 2025-08-07 18:47:28 -06:00
select-target-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
shiny-sparkle-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
show-ability-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
show-party-exp-bar-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
show-trainer-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
stat-stage-change-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
summon-missing-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
summon-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
switch-biome-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
switch-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
switch-summon-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
tera-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
title-phase.ts [Docs/Misc/i18n] Fix typos (#6231) 2025-08-07 18:56:50 -06:00
toggle-double-position-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
trainer-victory-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
turn-end-phase.ts [Balance] End of turn triggers won't occur when you end a biome (#6169) 2025-07-29 22:50:57 +00:00
turn-init-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
turn-start-phase.ts [Move Bug] Fully implemented Future Sight, Doom Desire; fixed Wish Double battle oversight (#5862) 2025-07-30 22:43:06 -06:00
unavailable-phase.ts [Refactor] Ensure that new phases are created through the phase manager 2025-06-07 23:55:30 -07:00
unlock-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
victory-phase.ts [Challenge] Add Nuzlocke-related Challenges (#6186) 2025-08-07 18:47:28 -06:00
weather-effect-phase.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00