mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-18 19:28:35 -05:00
- Centiskorch was misspelled in formats-data, causing a crash in the egg validator - A few validation errors were due to Gen 6 not inheriting from Gen 7, Gen 7 not having a scripts file, and Gen 8 having a gen of 7 - Intimidate (Gen 7) wasn't inheriting from Intimidate (Gen 8), giving it no name, causing a few validation errors (Technically not a build error, but I also added Keen Eye to the list of Intimidate immunities, as reported by SadisticMystic.) - A lot of tests relied on Teleport always failing; these have been switched to Gen 7 or swapped Teleport for Celebrate - Inverse Mod suddenly stopped working; its implementation was a huge hack and I can't figure out what went wrong, so I've switched it to using the same system the other mod tests use. It's still a huge hack, but I don't have the free time to fix it right now.
21 lines
692 B
JavaScript
21 lines
692 B
JavaScript
'use strict';
|
|
|
|
const assert = require('./../../assert');
|
|
const common = require('./../../common');
|
|
|
|
let battle;
|
|
|
|
describe('Disable', function () {
|
|
afterEach(function () {
|
|
battle.destroy();
|
|
});
|
|
|
|
it('should prevent the use of the target\'s last move', function () {
|
|
battle = common.gen(7).createBattle();
|
|
battle.setPlayer('p1', {team: [{species: 'Abra', ability: 'synchronize', item: 'laggingtail', moves: ['disable']}]});
|
|
battle.setPlayer('p2', {team: [{species: 'Abra', ability: 'synchronize', moves: ['teleport']}]});
|
|
battle.makeChoices('move disable', 'move teleport');
|
|
assert.cantMove(() => battle.makeChoices('move disable', 'move teleport'), 'Abra', 'Teleport');
|
|
});
|
|
});
|