mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-25 09:22:31 -05:00
The types Template, Move, Ability, and Item are now read-only. This should guard against accidental writing to types that shouldn't be written to. A new type, ActiveMove, has been introduced. Like it sounds, it's used for moves that are currently actively being used. A lot of attributes that are only relevant to active moves, such as `hasBounced`, are now only available on ActiveMove, not on Move. ActiveMoves are mutable, unlike Moves. getMoveCopy has been renamed getActiveMove, to better reflect its role. `isCopy` has been deprecated, and distinguishing Moves from ActiveMoves is now done by `typeof move.hit === 'number'` where necessary. ActiveMoves now internally track which hit of a multihit move they're on, in move.hit, so move.hit doesn't need to be manually incremented by Triple Kick and Parental Bond anymore. move.hasParentalBond has been replaced by a more generic move.multihitType. |
||
|---|---|---|
| .. | ||
| abilities.js | ||
| aliases.js | ||
| bss-factory-sets.json | ||
| factory-sets.json | ||
| formats-data.js | ||
| items.js | ||
| learnsets.js | ||
| moves.js | ||
| pokedex.js | ||
| random-teams.js | ||
| rulesets.js | ||
| scripts.js | ||
| statuses.js | ||
| typechart.js | ||