mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-17 18:51:43 -05:00
* 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
41 lines
1.2 KiB
JavaScript
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'));
|
|
});
|
|
});
|