mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-06-11 11:11:17 -05:00
Update No Retreat mechanics
This commit is contained in:
parent
d9327d945a
commit
a79c094df3
|
|
@ -13054,12 +13054,11 @@ let BattleMovedex = {
|
|||
pp: 5,
|
||||
priority: 0,
|
||||
flags: {snatch: 1},
|
||||
volatileStatus: 'noretreat',
|
||||
onTryMove(pokemon, target, move) {
|
||||
if (!pokemon.volatiles['noretreat']) return;
|
||||
this.add('-fail', pokemon, 'move: No Retreat');
|
||||
this.attrLastMove('[still]');
|
||||
return null;
|
||||
onTryHit(pokemon) {
|
||||
if (pokemon.volatiles['noretreat']) return false;
|
||||
if (!pokemon.volatiles['trapped']) {
|
||||
pokemon.addVolatile('noretreat');
|
||||
}
|
||||
},
|
||||
effect: {
|
||||
onStart(pokemon) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user