From dbf7d33e50bb3cd149ea11211513dd5d4fc00ea5 Mon Sep 17 00:00:00 2001 From: Leonard Craft III Date: Wed, 1 Apr 2020 02:46:45 -0500 Subject: [PATCH] Add test for Unaware & spread moves (#6506) --- test/sim/abilities/unaware.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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); + }); });