Spaces:
Running
Running
File size: 870 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 |
'use strict';
const assert = require('./../../assert');
const common = require('./../../common');
let battle;
describe("Heavy Duty Boots", () => {
afterEach(() => {
battle.destroy();
});
it("should prevent entry hazards from affecting the holder", () => {
battle = common.createBattle();
battle.setPlayer('p1', { team: [
{ species: 'Magikarp', ability: 'swiftswim', moves: ['splash'] },
{ species: 'Magikarp', ability: 'swiftswim', item: 'heavydutyboots', moves: ['splash'] },
] });
battle.setPlayer('p2', { team: [
{ species: 'Cloyster', ability: 'shellarmor', moves: ['spikes', 'toxicspikes'] },
] });
battle.makeChoices('auto', 'move spikes');
battle.makeChoices('auto', 'move toxicspikes');
battle.makeChoices('switch 2', 'auto');
assert.fullHP(battle.p1.active[0]);
assert.notEqual(battle.p1.active[0].status, 'psn');
});
});
|