pokemon-showdown/data/mods/gen5
Guangcong Luo 9b943fb62f Fix Dynamax stat handling
We now track `baseMaxhp`, the pre-Dynamax max HP. We also have a new
function `getUndynamaxedHP` for use by moves that use it (famously,
Endeavor).

- `baseStoredStats` is unused outside of the mouseover stats display.
  I updated its implementation to reflect this.

- Power Construct doesn't have a defined behavior during Dynamax. I
  ended up implementing an approximation of what it should probably do.

- Endeavor, Pain Split, Super Fang, and Nature's Madness now work on
  undynamaxed HP.

- Moves that deal or heal percentage damage now do it based on
  undynamaxed max HP, other than G-Max Finale.

Fixes #6131

Fixes #6087
2019-12-04 09:25:46 +09:00
..
abilities.js Refactor battle.dex out of battle (#5851) 2019-10-06 07:38:08 +11:00
formats-data.js
items.js
moves.js Refactor Toxic from Poison types against semi-invulnerability (#5930) 2019-11-06 19:51:22 -05:00
pokedex.js
random-teams.js RandomTeams mods: Shorten path 2019-11-15 19:50:17 +04:00
rulesets.js Improve egg validator (#5854) 2019-10-09 00:59:24 +11:00
scripts.js
statuses.js Fix Dynamax stat handling 2019-12-04 09:25:46 +09:00
typechart.js