pokerogue/src/field
NxKarim 8e64eaea3f
Some Fixes (HPRatio, Hustle, Imposter, Sleep Talk) (#353)
* Some Fixes

- HP ratio related checks (`getHpRatio`): Added rounding to 2 decimals for non-precise option.

- Hustle (`BattleStatMultiplierAbAttr`): added optional condition; Hustle now works only for physical attacks.

- Imposter (`PostSummonTransformAbAttr`): Switch in a double battle after both foes have been defeated no longer crashes the game.

- Sleep Talk (`RandomMovesetMoveAttr`): Single target moves no longer target allies.

* Formatting changes for consistency

---------

Co-authored-by: Flashfyre <flashfireex@gmail.com>
2024-04-30 11:47:10 -04:00
..
anims.ts Add unique Rogue Ball sprites 2024-03-05 19:48:41 -05:00
arena.ts Refactor overrides 2024-04-30 09:12:19 -04:00
damage-number-handler.ts Damage-related fixes and changes 2024-03-01 09:35:36 -05:00
pokemon-sprite-sparkle-handler.ts Add damage numbers feature 2024-03-01 00:27:46 -05:00
pokemon.ts Some Fixes (HPRatio, Hustle, Imposter, Sleep Talk) (#353) 2024-04-30 11:47:10 -04:00
trainer.ts Make trainer switch AI aware of arena traps 2024-03-31 12:00:54 -04:00