mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-18 03:01:00 -05:00
In addition, they should not activate for a spread move that ends the game. (This contrasts with Soul-Heart, which will activate until the last target.)
37 lines
1.6 KiB
JavaScript
37 lines
1.6 KiB
JavaScript
'use strict';
|
|
|
|
const assert = require('./../../assert');
|
|
const common = require('./../../common');
|
|
|
|
let battle;
|
|
|
|
describe('Moxie', function () {
|
|
afterEach(function () {
|
|
battle.destroy();
|
|
});
|
|
|
|
it('should boost Attack when its user KOs a Pokemon', function () {
|
|
battle = common.createBattle();
|
|
battle.setPlayer('p1', {team: [{species: "Krookodile", ability: 'moxie', moves: ['crunch']}]});
|
|
battle.setPlayer('p2', {team: [{species: "Shedinja", moves: ['sleeptalk']}, {species: 'Magikarp', moves: ['splash']}]});
|
|
battle.makeChoices('move crunch', 'move sleeptalk');
|
|
assert.statStage(battle.p1.active[0], 'atk', 1);
|
|
});
|
|
|
|
it('should not boost Attack when its user KOs the last Pokemon', function () {
|
|
battle = common.createBattle();
|
|
battle.setPlayer('p1', {team: [{species: "Krookodile", ability: 'moxie', moves: ['crunch']}]});
|
|
battle.setPlayer('p2', {team: [{species: "Shedinja", moves: ['sleeptalk']}]});
|
|
battle.makeChoices('move crunch', 'move sleeptalk');
|
|
assert.statStage(battle.p1.active[0], 'atk', 0);
|
|
});
|
|
|
|
it('should not boost Attack when its user KOs several last Pokemon', function () {
|
|
battle = common.createBattle({gameType: "doubles"});
|
|
battle.setPlayer('p1', {team: [{species: "Krookodile", ability: 'moxie', moves: ['earthquake']}, {species: "Shedinja", moves: ['sleeptalk']}]});
|
|
battle.setPlayer('p2', {team: [{species: "Shedinja", moves: ['sleeptalk']}, {species: "Shedinja", moves: ['sleeptalk']}]});
|
|
battle.makeChoices('move earthquake, move sleeptalk', 'move sleeptalk, move sleeptalk');
|
|
assert.statStage(battle.p1.active[0], 'atk', 0);
|
|
});
|
|
});
|