Don't treat locked moves as called moves

This commit is contained in:
Guangcong Luo
2015-08-01 00:53:01 -04:00
parent cf1e96390f
commit caacd8a98d

View File

@@ -5608,7 +5608,7 @@ var Battle = (function () {
break;
case 'move':
this.endLastTurn();
if (!kwargs.from && this.waitForResult()) return;
if ((!kwargs.from || kwargs.from === 'lockedmove') && this.waitForResult()) return;
var poke = this.getPokemon(args[1]);
var move = Tools.getMove(args[2]);
if (this.checkActive(poke)) return;