mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-30 21:42:20 +02:00
* 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> |
||
---|---|---|
.. | ||
abilities | ||
achievements | ||
arena | ||
battle | ||
battlerTags | ||
data | ||
eggs | ||
field | ||
inputs | ||
items | ||
moves | ||
mystery-encounter | ||
phases | ||
plugins/api | ||
settingMenu | ||
sprites | ||
system | ||
testUtils | ||
ui | ||
account.test.ts | ||
battle-scene.test.ts | ||
boss-pokemon.test.ts | ||
daily_mode.test.ts | ||
endless_boss.test.ts | ||
enemy_command.test.ts | ||
escape-calculations.test.ts | ||
evolution.test.ts | ||
final_boss.test.ts | ||
fontFace.setup.ts | ||
game-mode.test.ts | ||
imports.test.ts | ||
internals.test.ts | ||
misc.test.ts | ||
pre.test.ts | ||
reload.test.ts | ||
vitest.setup.ts |