mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-05 21:17:43 -05:00
Implement new function getMoveTargets to list all move targets given a user and a move. Refactor Battle system to remove redundancies with checking move targets. Run the RedirectTarget in this function instead of later after TryMove, since technically single-target moves changing targets should occur before the move is attempted. Refactor the DeductPP event to be a singleEvent that targets the Pokemon's ability instead of a global event. Run this event on the move's targets as calculated by BattlePokemon#getMoveTargets. |
||
|---|---|---|
| .. | ||
| abilities.js | ||
| aliases.js | ||
| factory-sets.json | ||
| formats-data.js | ||
| items.js | ||
| learnsets.js | ||
| moves.js | ||
| pokedex.js | ||
| rulesets.js | ||
| scripts.js | ||
| statuses.js | ||
| typechart.js | ||