mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-08-28 20:14:37 -05:00
Add test for Unaware & spread moves (#6506)
This commit is contained in:
committed by
GitHub
parent
6feb05c357
commit
dbf7d33e50
@@ -78,4 +78,17 @@ describe('Unaware', function () {
|
||||
battle.makeChoices('move splash', 'move shadowsneak');
|
||||
assert.notStrictEqual(pokemon.maxhp - pokemon.hp, damage);
|
||||
});
|
||||
it.skip('should only apply to targets with Unaware in battles with multiple Pokemon', function () {
|
||||
battle = common.createBattle({gameType: 'doubles'}, [[
|
||||
{species: 'manaphy', moves: ['tailglow', 'surf']},
|
||||
{species: 'slowbro', ability: 'unaware', moves: ['sleeptalk']},
|
||||
], [
|
||||
{species: 'clobbopus', ability: 'sturdy', moves: ['sleeptalk']},
|
||||
{species: 'clobbopus', ability: 'sturdy', moves: ['sleeptalk']},
|
||||
]]);
|
||||
battle.makeChoices('move tailglow, auto', 'auto');
|
||||
battle.makeChoices('move surf, auto', 'auto');
|
||||
assert.equal(battle.p2.active[0].hp, 1);
|
||||
assert.equal(battle.p2.active[1].hp, 1);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user