pokemon-showdown/test
livid washed d59bce51c6
Gen 1: Fix more Counter bugs (#9136)
* Gen 1: SonicBoom can be Countered

* OHKO moves do 65535 damage (matters for Counter against sub)

* Move damage comparison with target hp outside getDamage()

* Remove a blank line

* Move damage comparison with target hp outside getDamage() (Stadium)

* Add counter test

* Fix Metronome not failing if calling Counter (move setting lastDamage before tryMoveHit)

* Do the same for Stadium

* Start phasing out pokemon.lastDamage from Gen 1 code

* Failed Counter doesn't zero lastDamage

* When a move misses, battle.lastDamage is set to 0

* Remove all pokemon.lastDamage

* Remove a couple of comments
2022-12-08 16:07:39 -08:00
..
lib Support persisting battles in a Postgres database (#8442) 2022-07-22 18:07:10 -07:00
random-battles Gen 7 Randdubs: Fix Manectric pre-mega ability (#8942) 2022-10-21 14:12:27 -07:00
replays Tests: Add a function to save a battle replay (#7692) 2020-11-29 22:08:01 +00:00
server Hangman: Prevent impossible guesses, escape HTML (#9033) 2022-11-23 12:50:09 -08:00
sim Gen 1: Fix more Counter bugs (#9136) 2022-12-08 16:07:39 -08:00
tools Fix npm test build error 2021-11-19 01:46:10 -05:00
assert.js Unit tests: Refactor validator tests (#9069) 2022-11-29 20:55:17 -06:00
common.js Unit Tests: Transition to Gen 9 (#9009) 2022-11-18 21:34:40 -08:00
main.js Handle new TypeScript version (#8449) 2021-08-30 20:11:44 -07:00
users-utils.js Hangman: Prevent impossible guesses, escape HTML (#9033) 2022-11-23 12:50:09 -08:00