mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-05 13:07:56 -05:00
* Protect/Detect/Endure don't exist in gen 1
* Add twoturnmove condition to gen 1
* Gens 1-2: Mirror Move fails immediately after a switch
* Fix first Mirror Move test: Fearow was getting OHKO'd by Hyper Beam
* pokemon.lastMove (for Mirror Move) isn't updated with the charging turn
* Remove unnecessary code
* Add onTryMove for each two-turn move with removeVolatile('twoturnmove')
* Sleep, Freeze, partial trapping, flinch don't stop two turn moves
* Para/confusion stops thrashing moves + copy over lockedmove condition details instead of inheriting
* Remove some unnecessary code
* Add Dig/Fly invulnerability glitch
* Add hint for Dig/Fly invulnerability glitch
* Gen 1 Japanese and Stadium
* put Dig before Fly
* Self-targeted moves (e.g. Recover) will work while semi-invulnerable
* Revert changes to lockedmove, do them in a future patch
* move ends if it fails due to disable
* Two-turn moves use PP in their second turn
* restore mocharc
* Remove unnecessary code
* Fix PP usage for Metronome/Mirror Move calling two-turn moves
13 lines
430 B
TypeScript
13 lines
430 B
TypeScript
export const Conditions: {[k: string]: ModdedConditionData} = {
|
|
invulnerability: {
|
|
// Dig/Fly
|
|
name: 'invulnerability',
|
|
onInvulnerability(target, source, move) {
|
|
if (target === source) return true;
|
|
if ((move.id === 'swift' && target.volatiles['substitute']) || move.id === 'transform') return true;
|
|
this.add('-message', 'The foe ' + target.name + ' can\'t be hit while invulnerable!');
|
|
return false;
|
|
},
|
|
},
|
|
};
|