Spaces:
Running
Running
File size: 1,425 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 28 29 30 31 32 33 34 35 36 37 38 |
'use strict';
const assert = require('../../assert');
const common = require('../../common');
let battle;
describe('Burning Bulwark', () => {
afterEach(() => battle.destroy());
it(`should burn the user of a contact move`, () => {
battle = common.createBattle([
[{ species: "Gallade", ability: 'justified', moves: ['tackle'] }],
[{ species: "Entei", ability: 'innerfocus', moves: ['burningbulwark'] }],
]);
battle.makeChoices();
assert.equal(battle.p1.active[0].status, 'brn', 'Gallade should be burned when using contact move');
});
it(`should not burn the user of a contact move if user has protective pads`, () => {
battle = common.createBattle([
[{ species: "Gallade", item: 'protectivepads', ability: 'justified', moves: ['tackle'] }],
[{ species: "Entei", ability: 'innerfocus', moves: ['burningbulwark'] }],
]);
battle.makeChoices();
assert.equal(battle.p1.active[0].status, '', 'Gallade should not be burned when using contact move due to protective pads');
});
it(`should not burn the user of a non-contact move`, () => {
battle = common.createBattle([
[{ species: "Ogerpon-Wellspring", ability: 'Water Absorb', moves: ['ivycudgel'] }],
[{ species: "Entei", ability: 'innerfocus', moves: ['burningbulwark'] }],
]);
battle.makeChoices();
assert.equal(battle.p1.active[0].status, '', 'Ogerpon-Wellspring should not be burned when using non-contact move');
});
});
|