Update with new condition inheritance

This commit is contained in:
André Bastos Dias 2026-03-19 11:10:34 +00:00 committed by GitHub
parent 9ad6807fcf
commit aca00669ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: {