diff --git a/test/sim/abilities/unaware.js b/test/sim/abilities/unaware.js index 7d672df040..f8c3047c64 100644 --- a/test/sim/abilities/unaware.js +++ b/test/sim/abilities/unaware.js @@ -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); + }); });