Spaces:
Running
Running
File size: 2,039 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 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
'use strict';
const assert = require('./../../assert');
const common = require('./../../common');
let battle;
describe('Liquid Ooze', () => {
afterEach(() => {
battle.destroy();
});
it('should damage the target after it uses a draining move', () => {
battle = common.createBattle([[
{ species: 'tentacruel', ability: 'liquidooze', moves: ['sleeptalk'] },
], [
{ species: 'serperior', moves: ['gigadrain'] },
]]);
battle.makeChoices();
assert.false.fullHP(battle.p2.active[0]);
});
it(`should damage the target after taking damage from Leech Seed`, () => {
battle = common.createBattle([[
{ species: 'tentacruel', ability: 'liquidooze', moves: ['sleeptalk'] },
], [
{ species: 'serperior', ability: 'noguard', moves: ['leechseed'] },
]]);
battle.makeChoices();
assert.false.fullHP(battle.p2.active[0]);
});
});
describe('Liquid Ooze [Gen 4]', () => {
afterEach(() => {
battle.destroy();
});
it('should damage the target after it uses a draining move', () => {
battle = common.gen(4).createBattle([[
{ species: 'tentacruel', ability: 'liquidooze', moves: ['sleeptalk'] },
], [
{ species: 'roserade', moves: ['gigadrain'] },
]]);
battle.makeChoices();
assert.false.fullHP(battle.p2.active[0]);
});
it(`should damage the target after taking damage from leech seed`, () => {
battle = common.gen(4).createBattle([[
{ species: 'tentacruel', ability: 'liquidooze', moves: ['sleeptalk'] },
], [
{ species: 'roserade', ability: 'noguard', moves: ['leechseed'] },
]]);
battle.makeChoices();
assert.false.fullHP(battle.p2.active[0]);
});
it('should not damage the target if the target used Dream Eater', () => {
battle = common.gen(4).createBattle([[
{ species: 'tentacruel', ability: 'liquidooze', moves: ['sleeptalk'] },
], [
{ species: 'jolteon', moves: ['spore', 'dreameater'] },
]]);
battle.makeChoices('move sleeptalk', 'move spore');
battle.makeChoices('move sleeptalk', 'move dreameater');
assert.fullHP(battle.p2.active[0]);
});
});
|