mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-04-04 16:16:12 -05:00
27 lines
744 B
JavaScript
27 lines
744 B
JavaScript
'use strict';
|
|
|
|
const assert = require('./../../assert');
|
|
const common = require('./../../common');
|
|
|
|
let battle;
|
|
|
|
describe('Overflow Stat Mod', function () {
|
|
afterEach(function () {
|
|
battle.destroy();
|
|
});
|
|
|
|
it('should cap stats at 654 after a positive nature', function () {
|
|
battle = common.createBattle({overflowStatMod: true});
|
|
battle.setPlayer('p1', {team: [
|
|
{species: 'Eternatus-Eternamax', ability: 'Neutralizing Gas', moves: ['tackle'], nature: 'bold', evs: {def: 252}},
|
|
]});
|
|
battle.setPlayer('p2', {team: [
|
|
{species: 'Magikarp', ability: 'Damp', moves: ['tackle'], nature: 'bold', evs: {def: 1}},
|
|
]});
|
|
const eternamax = battle.p1.active[0];
|
|
const def = eternamax.getStat('def');
|
|
|
|
assert.equal(def, 654);
|
|
});
|
|
});
|