Spaces:
Running
Running
File size: 1,662 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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
'use strict';
const assert = require('./../../assert');
const common = require('./../../common');
let battle;
describe('Flower Veil', () => {
afterEach(() => {
battle.destroy();
});
it(`should block status conditions and stat drops on Grass-type Pokemon and its allies`, () => {
battle = common.createBattle({ gameType: 'doubles' }, [[
{ species: 'Breloom', moves: ['sleeptalk'] },
{ species: 'Venusaur', ability: 'flowerveil', moves: ['sleeptalk'] },
], [
{ species: 'Persian', moves: ['sandattack'] },
{ species: 'Raticate', moves: ['glare'] },
]]);
battle.makeChoices('auto', 'move sandattack 1, move glare 1');
battle.makeChoices('auto', 'move sandattack 2, move glare 2');
const breloom = battle.p1.active[0];
const venusaur = battle.p1.active[1];
assert.equal(breloom.status, '');
assert.equal(venusaur.status, '');
assert.statStage(breloom, 'accuracy', 0);
assert.statStage(venusaur, 'accuracy', 0);
});
it(`should not stop an ally from falling asleep when Yawn was already affecting it`, () => {
battle = common.createBattle({ gameType: 'doubles' }, [[
{ species: 'Breloom', moves: ['sleeptalk'] },
{ species: 'Heatran', moves: ['sleeptalk'] },
{ species: 'Florges', ability: 'flowerveil', moves: ['sleeptalk'] },
], [
{ species: 'Persian', moves: ['sleeptalk', 'yawn'] },
{ species: 'Raticate', moves: ['sleeptalk'] },
]]);
battle.makeChoices('move sleeptalk, move sleeptalk', 'move yawn 1, move sleeptalk');
battle.makeChoices('move sleeptalk, switch 3', 'move sleeptalk, move sleeptalk');
const breloom = battle.p1.active[0];
assert.equal(breloom.status, 'slp');
});
});
|