mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-06-02 22:08:36 -05:00
Update with new condition inheritance
This commit is contained in:
parent
9ad6807fcf
commit
aca00669ae
|
|
@ -611,19 +611,11 @@ export const Moves: import('../../../sim/dex-moves').ModdedMoveDataTable = {
|
|||
}
|
||||
},
|
||||
condition: {
|
||||
duration: 1,
|
||||
inherit: true,
|
||||
onStart(pokemon) {
|
||||
if (pokemon.status === 'slp' || (pokemon.hasAbility('truant') && pokemon.volatiles['truant'])) return;
|
||||
this.add('-singleturn', pokemon, 'move: Focus Punch');
|
||||
},
|
||||
onHit(pokemon, source, move) {
|
||||
if (move.category !== 'Status') {
|
||||
this.effectState.lostFocus = true;
|
||||
}
|
||||
},
|
||||
onTryAddVolatile(status, pokemon) {
|
||||
if (status.id === 'flinch') return null;
|
||||
},
|
||||
},
|
||||
},
|
||||
foresight: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user