Spaces:
Sleeping
Sleeping
File size: 786 Bytes
5c2ed06 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
'use strict';
const assert = require('./../../assert');
const common = require('./../../common');
let battle;
describe('Mix and Mega', () => {
beforeEach(() => {
battle = common.createBattle({ formatid: 'gen9mixandmega' });
});
afterEach(() => battle.destroy());
it('should overwrite forme-change abilities on Mega Evolution', () => {
battle.setPlayer('p1', { team: [{ species: "Mimikyu", ability: 'disguise', item: 'metagrossite', moves: ['shadowclaw'] }] });
battle.setPlayer('p2', { team: [{ species: "Palafin", ability: 'zerotohero', item: 'leftovers', moves: ['jetpunch'] }] });
battle.makeChoices('default', 'default'); // Switch in
battle.makeChoices('move shadowclaw mega', 'move jetpunch');
assert.equal(battle.p1.active[0].ability, 'toughclaws');
});
});
|