Spaces:
Running
Running
File size: 723 Bytes
5c2ed06 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
'use strict';
const assert = require('./../../assert');
const common = require('./../../common');
let battle;
describe("Choice Items", () => {
afterEach(() => {
battle.destroy();
});
it("should restore the same Choice lock after dynamax ends", () => {
battle = common.gen(8).createBattle([[
{ species: 'gyarados', moves: ['sleeptalk', 'splash'], item: 'choicescarf' },
], [
{ species: 'wynaut', moves: ['sleeptalk'] },
]]);
battle.makeChoices('move 1', 'auto');
battle.makeChoices('move 1 dynamax', 'auto');
battle.makeChoices();
battle.makeChoices('move 2', 'auto');
assert.throws(() => battle.choose('p1', 'move 2'),
"Gyarados shouldn't be allowed to select a different move");
});
});
|