pokemon-showdown/data
Bill Meltsner ba4148cfc7 Fix two-turn moves (mostly).
Two-turn moves are now controlled by a volatile, twoturnmove, which determines whether a Pokemon executes the charge turn or the move turn of a two-turn move. This handles mechanics like Truant Pokemon being unable to use two-turn moves, as the execution turn is their truancy turn. It also handles various edge cases involving moves that call other moves (e.g. Metronome) and Encore.

These changes add a new event, onChargeMove, in which one can return false to "skip" the charging turn and execute the move in full immediately. For example, Solarbeam returns false in onChargeMove if the weather is sunny, and Power Herb returns false if the Pokemon uses its item successfully. (Actually, those are the only two examples at present.)

This implementation is complete except for one issue, an inversion of a previous problem: whereas before, moves like Assist calling two-turn moves would execute them immediately, now, only the charge turn will be executed, and the Pokemon will not be locked into the move. This is due to be fixed soon.
2012-07-18 21:27:43 -05:00
..
abilities.js Fix all the Pursuit bugs! 2012-07-18 04:50:11 +04:00
aliases.js Reintroduce Basculin-B 2012-07-07 17:51:04 -04:00
formats-data.js Cubchoo viableMoves change 2012-07-19 04:02:52 +04:00
formats.js Challenge Cup 2012-07-10 09:47:35 -04:00
items.js Fix two-turn moves (mostly). 2012-07-18 21:27:43 -05:00
learnsets.js Some Dream World moves 2012-07-19 03:45:00 +04:00
moves.js Fix two-turn moves (mostly). 2012-07-18 21:27:43 -05:00
pokedex.js Reintroduce Basculin-B 2012-07-07 17:51:04 -04:00
scripts.js Fix two-turn moves (mostly). 2012-07-18 21:27:43 -05:00
statuses.js Fix two-turn moves (mostly). 2012-07-18 21:27:43 -05:00
typechart.js Move a bunch of files into data/ 2012-06-08 14:25:45 -07:00