File size: 642 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 | 'use strict';
const assert = require('./../../assert');
const common = require('./../../common');
let battle;
describe('Kee Berry', () => {
	afterEach(() => {
		battle.destroy();
	});
	it(`should activate after a multi-hit physical move`, () => {
		battle = common.createBattle([[
			{ species: "Wynaut", moves: ['doubleironbash'] },
		], [
			{ species: "Alakazam", item: 'keeberry', ability: 'shellarmor', moves: ['sleeptalk'] },
		]]);
		const alakazam = battle.p2.active[0];
		battle.makeChoices();
		const damage = alakazam.maxhp - alakazam.hp;
		assert.bounded(damage, [28 * 2, 34 * 2]); // Otherwise range would be 47-57
	});
});
 |