Skip to content

Commit 7eb56fc

Browse files
committed
Added test
1 parent fe576bc commit 7eb56fc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/sim/team-validator/misc.js

+10
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,16 @@ describe('Team Validator', () => {
305305
assert.legalTeam(team, format);
306306
});
307307

308+
it('should take into account things that changed across generations', () => {
309+
const team = [{ species: 'excadrill', ability: 'noability', item: '', moves: ['batonpass', 'rapidspin'], evs: { hp: 1 } }];
310+
311+
let format = 'gen7customgame@@@batonpassstatclause';
312+
assert.legalTeam(team, format);
313+
314+
format = 'gen8customgame@@@batonpassstatclause';
315+
assert.false.legalTeam(team, format);
316+
});
317+
308318
it('should detect if Ogerpon can stat pass, and allow making an exception for it', () => {
309319
const team = [{ species: 'ogerponhearthflame', ability: 'moldbreaker', item: 'hearthflamemask', moves: ['batonpass'], evs: { hp: 1 } }];
310320

0 commit comments

Comments
 (0)