pokemon-showdown/test/sim/items/heavydutyboots.js
Alexander B 88fa845350 Add Gen 8 unit tests
Closes #5952

(Bugs in PR fixed by Zarel)
2020-02-21 00:46:28 -08:00

29 lines
884 B
JavaScript

'use strict';
const assert = require('./../../assert');
const common = require('./../../common');
let battle;
describe("Heavy Duty Boots", function () {
afterEach(function () {
battle.destroy();
});
it("should prevent entry hazards from affecting the holder", function () {
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.notStrictEqual(battle.p1.active[0].status, 'psn');
});
});