Spaces:
Running
Running
File size: 1,631 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 |
'use strict';
const assert = require('./../../assert');
const common = require('./../../common');
let battle;
describe(`[Gen 4] Assist`, () => {
afterEach(() => {
battle.destroy();
});
it(`should never call moves that would fail under Gravity`, () => {
battle = common.gen(4).createBattle([[
{ species: 'furret', moves: ['assist'] },
{ species: 'smeargle', moves: ['bounce', 'fly', 'highjumpkick', 'splash'] },
{ species: 'smeargle', moves: ['bounce', 'fly', 'highjumpkick', 'splash'] },
{ species: 'smeargle', moves: ['bounce', 'fly', 'highjumpkick', 'splash'] },
{ species: 'smeargle', moves: ['doubleteam', 'fly', 'highjumpkick', 'splash'] },
{ species: 'smeargle', moves: ['bounce', 'fly', 'highjumpkick', 'splash'] },
], [
{ species: 'deoxys', moves: ['gravity'] },
]]);
for (let i = 0; i < 5; i++) battle.makeChoices();
assert.statStage(battle.p1.active[0], 'evasion', 5);
});
it(`should never call moves that would fail under Heal Block`, () => {
battle = common.gen(4).createBattle([[
{ species: 'furret', moves: ['assist'] },
{ species: 'smeargle', moves: ['recover', 'rest', 'roost', 'wish'] },
{ species: 'smeargle', moves: ['recover', 'rest', 'doubleteam', 'wish'] },
{ species: 'smeargle', moves: ['recover', 'rest', 'roost', 'wish'] },
{ species: 'smeargle', moves: ['recover', 'rest', 'roost', 'wish'] },
{ species: 'smeargle', moves: ['recover', 'rest', 'roost', 'wish'] },
], [
{ species: 'latios', moves: ['healblock'] },
]]);
for (let i = 0; i < 5; i++) battle.makeChoices();
assert.statStage(battle.p1.active[0], 'evasion', 5);
});
});
|