mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-20 14:08:15 -05:00
25 lines
679 B
JavaScript
25 lines
679 B
JavaScript
'use strict';
|
|
|
|
const assert = require('./../../assert');
|
|
const common = require('./../../common');
|
|
|
|
let battle;
|
|
|
|
describe("Ripen", function () {
|
|
afterEach(function () {
|
|
battle.destroy();
|
|
});
|
|
|
|
it("should double healing from berries", function () {
|
|
battle = common.createBattle();
|
|
battle.setPlayer('p1', {team: [
|
|
{species: 'Appletun', ability: 'ripen', item: 'sitrusberry', moves: ['growth'], ivs: {hp: 0}},
|
|
]});
|
|
battle.setPlayer('p2', {team: [
|
|
{species: 'Skwovet', ability: 'gluttony', moves: ['superfang']},
|
|
]});
|
|
battle.makeChoices();
|
|
assert(battle.p1.active[0].hp > battle.p1.active[0].maxhp * 0.95); // Damaged by 50% + healed 50% = appx 100%
|
|
});
|
|
});
|