pokemon-showdown/data/mods/gen4
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 Gen III-IV: Correct Intimidate boost attribution 2019-10-30 19:36:03 -04:00
formats-data.js Gen 4 Random Battle improvements (#5828) 2019-10-01 16:11:28 +04:00
items.js Fix Dynamax stat handling 2019-12-04 09:25:46 +09:00
moves.js Fix Dynamax stat handling 2019-12-04 09:25:46 +09:00
pokedex.js Mark Feebas's evolution in Gen4 as requiring high Beauty 2019-02-21 22:56:07 +01:00
random-teams.js RandomTeams mods: Shorten path 2019-11-15 19:50:17 +04:00
rulesets.js Refactor battle.dex out of battle (#5851) 2019-10-06 07:38:08 +11:00
scripts.js Centralise invulnerability checks for No Guard and Lock-On (#5894) 2019-10-17 22:32:44 -04:00
statuses.js Only add the '-status slp' message in statuses (#5486) 2019-05-08 11:52:44 -04:00