Add test for Unaware & spread moves (#6506)

This commit is contained in:
Leonard Craft III
2020-04-01 02:46:45 -05:00
committed by GitHub
parent 6feb05c357
commit dbf7d33e50

View File

@@ -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);
});
});