pokemon-showdown/test/simulator/moves/taunt.js
Ivo Julca 511a45eb95 Implement immunity of Dark-types to Prankster
The immunity also applies to any moves, even non-Status, called by
other Prankster-boosted moves.
2016-11-18 00:35:52 -05:00

24 lines
770 B
JavaScript

'use strict';
const assert = require('./../../assert');
const common = require('./../../common');
let battle;
describe('Taunt', function () {
afterEach(function () {
battle.destroy();
});
it('should prevent the target from using Status moves and disable them', function () {
battle = common.createBattle();
battle.join('p1', 'Guest 1', 1, [{species: 'Sableye', ability: 'prankster', moves: ['taunt']}]);
battle.join('p2', 'Guest 2', 1, [{species: 'Chansey', ability: 'naturalcure', moves: ['calmmind']}]);
battle.commitDecisions();
assert.strictEqual(battle.p2.active[0].boosts['spa'], 0);
assert.strictEqual(battle.p2.active[0].boosts['spd'], 0);
battle.commitDecisions();
assert.strictEqual(battle.p2.active[0].lastMove, 'struggle');
});
});