-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
White Herb doubles fix #5185
Closed
Closed
White Herb doubles fix #5185
Changes from 4 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
33aa56e
White Herb fix for doubles
littlefoot22 e903291
White Herb fix for doubles
littlefoot22 64ed5eb
White Herb fix for doubles
littlefoot22 9afb9b1
White Herb fix for doubles
littlefoot22 6a011e8
white herb fix for doubles
littlefoot22 cec77b1
merge
littlefoot22 0326489
white herb fix for doubles
littlefoot22 7890705
white herb fix
littlefoot22 d005949
white herb fix
littlefoot22 b086cf5
whiteherb fixtest/simulator/items/whiteherb.js
edcabe0
whiteherb fix
29837aa
whiteherb fix
f4e9bb2
white herb fix
a5d8ad9
white herb
0f26d0c
white herb fix
d8ff962
white herb fix
5255e5c
white herb fix
ccad5b6
white herb fix
5fd9855
white herb fix
0c50303
white herb fix
3f305e4
white herb fix
976dbd9
spelling
littlefoot22 488ca68
add singles test remove doubles check
c615ae7
add singles test remove doubles check
bb1ad20
merge
0f13b95
merge
3cc1a30
mislabeled test
a230288
mislabeled test
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
'use strict'; | ||
|
||
const assert = require('./../../assert'); | ||
const common = require('./../../common'); | ||
|
||
let battle; | ||
|
||
describe('White Herb', function () { | ||
afterEach(function () { | ||
battle.destroy(); | ||
}); | ||
|
||
it('should use white herb after both intimidate', function () { | ||
battle = common.createBattle({gameType: 'doubles'}); | ||
|
||
battle.join('p1', 'Guest 1', 1, [{species: "Arcanine", ability: 'intimidate', moves: ['bodyslam']}, | ||
{species: "Incineroar", ability: 'intimidate', moves: ['agility']}]); | ||
battle.join('p2', 'Guest 2', 1, [{species: "aegislash", ability: 'stancechange', item: 'whiteherb', moves: ['gyroball']}, | ||
{species: "pelipper", ability: 'sandveil', item: 'lifeorb', moves: ['airslash']}]); | ||
|
||
const holder = battle.p2.active[0]; | ||
|
||
assert.false.holdsItem(holder); | ||
assert.statStage(holder, 'atk', 0); | ||
}); | ||
}); |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.