Spaces:
Running
Running
File size: 1,527 Bytes
5c2ed06 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
'use strict';
const assert = require('assert').strict;
const common = require('./../../common');
const unimportantPokemon = { species: 'magikarp', moves: ['splash'] };
describe(`[Hackmons] Silvally`, () => {
it(`in untyped forme should change its type to match the memory held`, () => {
const battle = common.createBattle([
[{ species: 'silvally', ability: 'rkssystem', item: 'firememory', moves: ['rest'] }],
[unimportantPokemon],
]);
assert.deepEqual(battle.p1.active[0].getTypes(), ["Fire"]);
});
it(`in Steel forme should should be Water-typed to match the held Water Memory`, () => {
const battle = common.createBattle([
[{ species: 'silvallysteel', ability: 'rkssystem', item: 'watermemory', moves: ['rest'] }],
[unimportantPokemon],
]);
assert.deepEqual(battle.p1.active[0].getTypes(), ["Water"]);
});
it(`in a typed forme should be Normal-typed if no memory is held`, () => {
const battle = common.createBattle([
[{ species: 'silvallyfire', ability: 'rkssystem', item: 'leftovers', moves: ['rest'] }],
[unimportantPokemon],
]);
assert.deepEqual(battle.p1.active[0].getTypes(), ["Normal"]);
});
it(`[Gen 7] in a typed forme should be Normal-typed despite holding a memory if Silvally does not have the RKS System ability`, () => {
const battle = common.gen(7).createBattle([
[{ species: 'silvallyfire', ability: 'truant', item: 'firememory', moves: ['rest'] }],
[unimportantPokemon],
]);
assert.deepEqual(battle.p1.active[0].getTypes(), ["Normal"]);
});
});
|