mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-11 15:04:12 -05:00
Gen 1: Fix two turn moves
This fixes two turn moves as latest changes maonde this necessary.
Related to 7977b2c3cd
This commit is contained in:
parent
263cb0b422
commit
e253ea3e7d
|
|
@ -142,7 +142,8 @@ exports.BattleScripts = {
|
|||
this.setActiveMove(move, pokemon, target);
|
||||
|
||||
if (pokemon.movedThisTurn || !this.runEvent('BeforeMove', pokemon, target, move)) {
|
||||
this.debug('' + pokemon.id + ' move interrupted; movedThisTurn: ' + pokemon.movedThisTurn);
|
||||
// Prevent invulnerability from persisting until the turn ends
|
||||
pokemon.removeVolatile('twoturnmove');
|
||||
this.clearActiveMove(true);
|
||||
// This is only run for sleep
|
||||
this.runEvent('AfterMoveSelf', pokemon, target, move);
|
||||
|
|
@ -174,6 +175,7 @@ exports.BattleScripts = {
|
|||
// We remove screens
|
||||
target.side.removeSideCondition('reflect');
|
||||
target.side.removeSideCondition('lightscreen');
|
||||
pokemon.removeVolatile('twoturnmove');
|
||||
} else {
|
||||
this.runEvent('AfterMoveSelf', pokemon, target, move);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user