pokemon-showdown/test/sim/moves/acupressure.js
Leonard Craft III 606576f453
Add various mechanics tests (#8313)
* Standardize Photon Geyser tests
* Add Gulp Missile tests
* Add Berserk Dragon Darts test
* Add Ring Target tests
* Add and improve Metronome tests
* Add Sparkling Aria tests
* Add additional Fling tests
* Standardize Mummy tests
* Add Rollout submove targeting test
* Improve Flower Veil tests
* Add Acupressure tests
* Improve Sky Drop tests
* Add Future Sight tests
* Improve Wandering Spirit tests
* Improve Rapid Spin tests
* Add Rocky Helmet victory test
* Improve Focus Punch tests
* Add a skipped Stomping Tantrum test
2021-05-20 08:43:08 -04:00

41 lines
1.2 KiB
JavaScript

'use strict';
const assert = require('./../../assert');
const common = require('./../../common');
let battle;
describe('Acupressure', function () {
afterEach(function () {
battle.destroy();
});
it(`should be able to target an ally in doubles`, function () {
battle = common.createBattle({gameType: 'doubles'}, [[
{species: 'Wynaut', moves: ['acupressure']},
{species: 'Smoochum', moves: ['sleeptalk']},
], [
{species: 'Clamperl', moves: ['sleeptalk']},
{species: 'Whismur', moves: ['sleeptalk']},
]]);
assert.false.cantMove(() => battle.choose('p1', 'move acupressure -2, move sleeptalk'));
});
it(`should be unable to target any opponent in free-for-alls`, function () {
battle = common.createBattle({gameType: 'freeforall'}, [[
{species: 'Wynaut', moves: ['acupressure']},
], [
{species: 'Cufant', moves: ['sleeptalk']},
], [
{species: 'Qwilfish', moves: ['sleeptalk']},
], [
{species: 'Marowak', moves: ['sleeptalk']},
]]);
assert.cantMove(() => battle.choose('p1', 'move acupressure 1'));
assert.cantMove(() => battle.choose('p1', 'move acupressure 2'));
assert.cantMove(() => battle.choose('p1', 'move acupressure -2'));
});
});