mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-25 17:33:04 -05:00
26 lines
693 B
JavaScript
26 lines
693 B
JavaScript
'use strict';
|
|
|
|
const assert = require('./../../assert');
|
|
const common = require('./../../common');
|
|
|
|
let battle;
|
|
|
|
describe('Berserk', function () {
|
|
afterEach(function () {
|
|
battle.destroy();
|
|
});
|
|
|
|
it.skip(`should activate prior to healing from Sitrus Berry`, function () {
|
|
battle = common.createBattle([[
|
|
{species: "Drampa", item: 'sitrusberry', ability: 'berserk', evs: {hp: 4}, moves: ['sleeptalk']},
|
|
], [
|
|
{species: "wynaut", ability: 'compoundeyes', moves: ['superfang']},
|
|
]]);
|
|
|
|
battle.makeChoices();
|
|
const drampa = battle.p1.active[0];
|
|
assert.statStage(drampa, 'spa', 1);
|
|
assert.equal(drampa.hp, Math.floor(drampa.maxhp / 2) + Math.floor(drampa.maxhp / 4));
|
|
});
|
|
});
|