pokemon-showdown/test/simulator/moves/thunderwave.js
Kevin Lau 85ee0961c1 Further upgrade status move tests
Steel-types are immune to the poison status in Gen 3+, so wrap it into the
"fail when the opposing Pokemon is immune to the status it sets" and set
up the poison-inflicting status test to check Generation 2.

Spin off Thunder Wave to its own test, and also create a test for Glare to
check its Generation 3 behavior as well.
2015-06-18 17:05:49 -07:00

25 lines
945 B
JavaScript

var assert = require('assert');
var battle;
describe('Thunder Wave', function () {
afterEach(function () {
battle.destroy();
});
it('should inflict paralysis on its target', function () {
battle = BattleEngine.Battle.construct();
battle.join('p1', 'Guest 1', 1, [{species: "Jolteon", ability: 'quickfeet', moves: ['thunderwave']}]);
battle.join('p2', 'Guest 2', 1, [{species: "Vaporeon", ability: 'hydration', moves: ['aquaring']}]);
battle.commitDecisions();
assert.strictEqual(battle.p2.active[0].status, 'par');
});
it('should not ignore natural type immunities', function () {
battle = BattleEngine.Battle.construct();
battle.join('p1', 'Guest 1', 1, [{species: "Jolteon", ability: 'quickfeet', moves: ['thunderwave']}]);
battle.join('p2', 'Guest 2', 1, [{species: "Hippowdon", ability: 'sandforce', moves: ['slackoff']}]);
battle.commitDecisions();
assert.strictEqual(battle.p2.active[0].status, '');
});
});