-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gen 1: Fix Mirror Move Hyper Beam interaction (#8966)
* (Partially) fix Mirror Move after move behavior * typo
- Loading branch information
1 parent
3eda79c
commit 40cd8b4
Showing
3 changed files
with
239 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
'use strict'; | ||
|
||
const assert = require('./../../assert'); | ||
const common = require('./../../common'); | ||
|
||
let battle; | ||
|
||
describe('Mirror Move [Gen 1]', function () { | ||
afterEach(function () { | ||
battle.destroy(); | ||
}); | ||
|
||
it(`[Gen 1] Mirror Move'd Hyper Beam should force a recharge turn after not KOing a Pokemon`, function () { | ||
battle = common.gen(1).createBattle([[ | ||
{species: 'fearow', moves: ['mirrormove', 'tackle']}, | ||
], [ | ||
{species: 'aerodactyl', moves: ['hyperbeam']}, | ||
]]); | ||
battle.makeChoices(); | ||
assert.cantMove(() => battle.choose('p1', 'move tackle')); | ||
}); | ||
|
||
it(`[Gen 1] Mirror Move'd Hyper Beam should not force a recharge turn after KOing a Pokemon`, function () { | ||
battle = common.gen(1).createBattle([[ | ||
{species: 'fearow', moves: ['mirrormove', 'tackle']}, | ||
], [ | ||
{species: 'kadabra', moves: ['hyperbeam']}, | ||
{species: 'exeggutor', moves: ['splash']}, | ||
]]); | ||
battle.makeChoices(); | ||
battle.choose('p2', 'switch exeggutor'); | ||
assert.false.cantMove(() => battle.choose('p1', 'move tackle')); | ||
}); | ||
}); |