Jofthomas's picture
Jofthomas HF staff
Upload 4781 files
5c2ed06 verified
raw
history blame contribute delete
650 Bytes
'use strict';
const assert = require('./../../assert');
const common = require('./../../common');
let battle;
describe('Aura Wheel', () => {
afterEach(() => {
battle.destroy();
});
it('should change types based on Morpeko forme', () => {
battle = common.createBattle([
[{ species: 'Morpeko', ability: 'hungerswitch', moves: ['aurawheel'] }],
[{ species: 'Rhyperior', ability: 'solidrock', moves: ['stealthrock'] }],
]);
battle.makeChoices('move aurawheel', 'move stealthrock');
assert.fullHP(battle.p2.active[0]);
battle.makeChoices('move aurawheel', 'move stealthrock');
assert.false.fullHP(battle.p2.active[0]);
});
});