Spaces:
Running
Running
File size: 833 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 |
'use strict';
const assert = require('./../../assert');
const common = require('./../../common');
let battle;
describe('Booster Energy', () => {
afterEach(() => {
battle.destroy();
});
it(`should not activate before Sticky Web when switching in`, () => {
battle = common.createBattle([[
{ species: 'Abra', ability: 'synchronize', moves: ['teleport'] },
{ species: 'Iron Bundle', ability: 'quarkdrive', item: 'boosterenergy', moves: ['sleeptalk'] },
], [
{ species: 'Ribombee', ability: 'shielddust', moves: ['stickyweb'] },
]]);
battle.makeChoices();
battle.makeChoices('switch 2');
const bundle = battle.p1.active[0];
assert.equal(bundle.volatiles['quarkdrive'].bestStat, 'spa',
`Iron Bundle's Speed should have been lowered before Booster Energy activated, boosting its SpA instead.`);
});
});
|