mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-06 13:47:24 -05:00
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.
25 lines
945 B
JavaScript
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, '');
|
|
});
|
|
});
|