mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-04-21 01:57:25 -05:00
* Improve Volcalith tests readability * Add G-Max Volcalith recoil damage order test * Add 1 HP priority tests * Add charge move targeting test * Correct assertions of Ripen / Sturdy * Skip failing tests * Add Volcalith Black Sludge test * Add Pressure Max / Z-move tests * Add Pressure submove test * Add NGas speed test * Skip NGas speed test * Add White Herb double Intimidate test * Remove debug log * Remove duplicate Pressure test * Improve White Herb Intimidate test title * Add Rollout Storage tests * Add spread move Rollout storage test * Add Magician Weakness Policy test * Add Sleep tests * Add Shell Bell spread move test * Add Synchronize Lum Berry test * oh yeah it doesn't work * Remove duplicate test * Add Sunsteel Strike tests * Add Leech Seed ally switch test * Add Primal weather Natural Gift test * Add Emergency Exit hazards test * Add generic hazards tests * Add and standardize Arceus tests * Add Transform ability test * Add and standardize Parting Shot tests * Add Memento tests * Add Me First test * Add Cursed Body Z-move test * Add Assurance targeting test * Clarify Assurance test description * Add double faint switch test * Add Receiver KO boost ability * Add double Unnerve test * Add Dynamax Eject Pack test * Improve Dynamax forced switchout test * Add Protective Pads Perish Body test * Add Sticky Web Pressure test * Add Speed modifier lower bound test * Add Cloud Nine Hydration test * Correct Cursed Body test * Add Grassy Terrain Leftovers test * Remove leftover debug * Add additional Receiver and Soul-Heart tests * Add Spite tests * mish * Add Shell Bell multihit test * Add WP Dragon Tail test Co-authored-by: The Immortal <the_immortal123@live.com>
64 lines
2.1 KiB
JavaScript
64 lines
2.1 KiB
JavaScript
'use strict';
|
|
|
|
const assert = require('./../../assert');
|
|
const common = require('./../../common');
|
|
|
|
let battle;
|
|
|
|
describe("White Herb", function () {
|
|
afterEach(function () {
|
|
battle.destroy();
|
|
});
|
|
|
|
it('should activate after Parting Shot drops both stats, but before the switch is resolved', function () {
|
|
battle = common.createBattle([[
|
|
{species: 'torracat', moves: ['partingshot']},
|
|
{species: 'litten', moves: ['sleeptalk']},
|
|
], [
|
|
{species: 'wynaut', item: 'whiteherb', moves: ['sleeptalk']},
|
|
]]);
|
|
battle.makeChoices();
|
|
const wynaut = battle.p2.active[0];
|
|
assert.false.holdsItem(wynaut);
|
|
assert.statStage(wynaut, 'atk', 0);
|
|
assert.statStage(wynaut, 'spa', 0);
|
|
});
|
|
|
|
it.skip('should activate after Abilities that boost stats on KOs', function () {
|
|
battle = common.createBattle([[
|
|
{species: 'litten', level: 1, ability: 'noguard', moves: ['sleeptalk']},
|
|
{species: 'torracat', moves: ['partingshot']},
|
|
], [
|
|
{species: 'wynaut', item: 'whiteherb', ability: 'grimneigh', moves: ['dracometeor']},
|
|
]]);
|
|
battle.makeChoices();
|
|
const wynaut = battle.p2.active[0];
|
|
assert.false.holdsItem(wynaut);
|
|
assert.statStage(wynaut, 'spa', 0);
|
|
});
|
|
|
|
it.skip('should activate after two Intimidate switch in at the same time', function () {
|
|
battle = common.createBattle({gameType: 'doubles'}, [[
|
|
{species: 'litten', ability: 'intimidate', moves: ['sleeptalk']},
|
|
{species: 'torracat', ability: 'intimidate', moves: ['sleeptalk', 'finalgambit']},
|
|
{species: 'litten', ability: 'intimidate', moves: ['sleeptalk']},
|
|
{species: 'landorustherian', ability: 'intimidate', moves: ['sleeptalk']},
|
|
], [
|
|
{species: 'wynaut', item: 'whiteherb', moves: ['sleeptalk', 'recycle']},
|
|
{species: 'fraxure', moves: ['sleeptalk']},
|
|
]]);
|
|
|
|
// Leads
|
|
battle.makeChoices();
|
|
const wynaut = battle.p2.active[0];
|
|
assert.false.holdsItem(wynaut);
|
|
assert.statStage(wynaut, 'atk', 0);
|
|
|
|
// After a double KO
|
|
battle.makeChoices('move sleeptalk, move finalgambit -1', 'move recycle, move sleeptalk');
|
|
battle.makeChoices('switch 3, switch 4');
|
|
assert.false.holdsItem(wynaut);
|
|
assert.statStage(wynaut, 'atk', 0);
|
|
});
|
|
});
|