mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-09-14 04:05:39 -05:00
Don't let Gorilla Tactics lock into Max moves
This commit is contained in:
@@ -1290,8 +1290,8 @@ let BattleAbilities = {
|
||||
pokemon.abilityData.choiceLock = "";
|
||||
},
|
||||
onBeforeMove(pokemon, target, move) {
|
||||
if (move.isZPowered || move.maxPowered || move.id === 'struggle') return;
|
||||
if (pokemon.abilityData.choiceLock && pokemon.abilityData.choiceLock !== move.id) {
|
||||
if (move.isZPowered || move.maxPowered || move.id === 'struggle') return;
|
||||
// Fails unless ability is being ignored (these events will not run), no PP lost.
|
||||
this.addMove('move', pokemon, move.name);
|
||||
this.attrLastMove('[still]');
|
||||
@@ -1301,6 +1301,7 @@ let BattleAbilities = {
|
||||
}
|
||||
},
|
||||
onModifyMove(move, pokemon) {
|
||||
if (move.isZPowered || move.maxPowered || move.id === 'struggle') return;
|
||||
pokemon.abilityData.choiceLock = move.id;
|
||||
},
|
||||
onModifyAtkPriority: 1,
|
||||
|
||||
Reference in New Issue
Block a user