pokemon-showdown/test/sim/moves/brickbreak.js
Guangcong Luo 8d140b4bca Fix Gmax validation
(Gmax Pokémon can't be from older gens.)
2020-03-06 10:41:33 -08:00

27 lines
621 B
JavaScript

'use strict';
const assert = require('./../../assert');
const common = require('./../../common');
let battle;
describe('Brick Break', function () {
afterEach(function () {
battle.destroy();
});
it('should break Reflect', function () {
battle = common.createBattle([[
{species: "mew", moves: ['brickbreak', 'splash']},
], [
{species: "ninjask", moves: ['reflect', 'splash']},
]]);
battle.makeChoices('move splash', 'move reflect');
assert(battle.p2.sideConditions['reflect']);
battle.makeChoices('move brickbreak', 'move splash');
assert.false(battle.p2.sideConditions['reflect']);
});
});