mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-17 18:51:43 -05:00
39 lines
1.1 KiB
JavaScript
39 lines
1.1 KiB
JavaScript
'use strict';
|
|
|
|
const assert = require('./../../assert');
|
|
const common = require('./../../common');
|
|
|
|
let battle;
|
|
|
|
describe('Sparkling Aria', function () {
|
|
afterEach(function () {
|
|
battle.destroy();
|
|
});
|
|
|
|
it(`should cure the target's burn`, function () {
|
|
battle = common.createBattle([[
|
|
{species: 'Wynaut', ability: 'compoundeyes', moves: ['will-o-wisp', 'sparklingaria']},
|
|
], [
|
|
{species: 'Chansey', moves: ['sleeptalk']},
|
|
]]);
|
|
|
|
battle.makeChoices();
|
|
battle.makeChoices('move sparklingaria', 'auto');
|
|
assert.equal(battle.p2.active[0].status, '');
|
|
});
|
|
|
|
it(`should not cure the target's burn if the user fainted`, function () {
|
|
battle = common.createBattle({gameType: 'doubles'}, [[
|
|
{species: 'Shedinja', moves: ['sparklingaria']},
|
|
{species: 'Wynaut', level: 1, ability: 'innardsout', moves: ['sleeptalk']},
|
|
{species: 'Wynaut', moves: ['sleeptalk']},
|
|
], [
|
|
{species: 'Chansey', moves: ['sleeptalk']},
|
|
{species: 'Gengar', ability: 'compoundeyes', moves: ['willowisp']},
|
|
]]);
|
|
|
|
battle.makeChoices('auto', 'move sleeptalk, move willowisp -1');
|
|
assert.equal(battle.p2.active[0].status, 'brn');
|
|
});
|
|
});
|