mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-15 08:50:10 -05:00
21 lines
665 B
JavaScript
21 lines
665 B
JavaScript
'use strict';
|
|
|
|
const assert = require('./../../assert');
|
|
const common = require('./../../common');
|
|
|
|
let battle;
|
|
|
|
describe('Mega Evolution', function () {
|
|
afterEach(function () {
|
|
battle.destroy();
|
|
});
|
|
|
|
it('should overwrite normally immutable abilities', function () {
|
|
battle = common.createBattle();
|
|
const p1 = battle.join('p1', 'Guest 1', 1, [{species: "Metagross", ability: 'comatose', item: 'metagrossite', moves: ['metalclaw']}]);
|
|
battle.join('p2', 'Guest 2', 1, [{species: "Wishiwashi", ability: 'schooling', moves: ['uturn']}]);
|
|
battle.makeChoices('move metalclaw mega', 'move uturn');
|
|
assert.equal(p1.active[0].ability, 'toughclaws');
|
|
});
|
|
});
|