pokerogue/public
schmidtc1 40e1e7fd4e
[Bug] Fix Reviver Seed and endure triggering on indirect damage (#5182)
* Create new turnData field for tracking damageResults, check for HitResult in Reviver Seed modifier

* Optional chaining for cases like stealth rock

* Adds HitResult.SELF for confusion to distinguish from indirect damage

* Adds HitResult.SELF to damage sound effect switch

* Cover edge case of salt cure, insert HitResult for ALL damage regardless of optional variable

* Change Liquid Ooze HitResult to OTHER from HEAL

* Adjust OHKO moves to not bypass endure or RSeed

* Add tests for reviver seed

* Fixes endure to no longer block indirect damage, updates weather damage to be HitResult.OTHER, adds/fixes unit test

* Change destiny bond to HitResult.OTHER so it doesn't trigger rseed

* Adds destiny bond unit test

* Creates additional unit tests for endure

* Rename SELF hitresult to CONFUSION

* Update CONFUSION enum

* Refactors implementation per Wlowscha's suggestions: removes damageSources array and preventEndure variable

* Rename HitResult.OTHER to INDIRECT, create INDIRECT_KO for PSong/DBond, add functionality for INDIRECT_KO to damageanim/number handler

* Fixes hit result for stealth rock

* Removes unnecessary check, makes DamageResult default to EFFECTIVE, updates remaining damageAndUpdate calls to use INDIRECT

* Refactors damageAndUpdate to replace optional parameters with object parameter

* Fixes based on Kev's suggestions

* Updates tsdocs for damageAndUpdate

* Fix merge conflict

---------

Co-authored-by: Wlowscha <54003515+Wlowscha@users.noreply.github.com>
2025-03-23 22:59:19 +00:00
..
audio [Audio] Replace End biome BGM with custom BGM by Firel (#5271) 2025-02-08 08:16:25 -07:00
battle-anims [Feature] Tera Rework (#5233) 2025-02-16 16:20:50 -05:00
fonts [UX/UI] Update emerald font for zero (again) (#5268) 2025-02-07 13:40:58 -07:00
images Revert "[Enhancement] Add form changes for Solgaleo, Lunala, & Marshadow cosmetic forms" (#5512) 2025-03-13 22:32:35 +01:00
locales@0e5c6096ba [Bug] Fix Reviver Seed and endure triggering on indirect damage (#5182) 2025-03-23 22:59:19 +00:00
.gitkeep Initial commit 2023-03-28 14:54:52 -04:00
exp-sprites.json [Sprite] Fixing the naming issue in exp-sprite.json +Disabling few problematic exp's (#5526) 2025-03-20 19:15:12 +00:00
logo128.png Fix PWA setup 2024-04-12 19:42:17 -04:00
logo512.png Fix PWA setup 2024-04-12 19:42:17 -04:00
manifest.webmanifest Prevent Fusion Status Errors +Fix Double Battle Issue (#472) 2024-05-04 22:16:59 -05:00
service-worker.js Move service-worker to public folder 2024-05-02 11:37:06 -04:00
starter-colors.json Add candy system for passives and value reductions 2024-04-13 18:59:58 -04:00
update-source-comments.py [QoL] Reorganize Enum Locations (#2185) 2024-06-13 18:44:23 -04:00