mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-06 22:43:29 -05:00
STABmons: allow Hoopa to inherit from Hoopa-U
This commit is contained in:
parent
0dc1579a02
commit
079e167fd8
|
|
@ -594,7 +594,9 @@ Validator = (function () {
|
|||
alreadyChecked[template.speciesid] = true;
|
||||
// STABmons hack to avoid copying all of validateSet to formats
|
||||
if (format.banlistTable && format.banlistTable['ignorestabmoves'] && move !== 'chatter') {
|
||||
var types = (template.species === 'Shaymin' ? tools.getTemplate('shayminsky').types : template.types);
|
||||
var types = template.types;
|
||||
if (template.species === 'Shaymin') types = types.concat('Grass');
|
||||
if (template.species === 'Hoopa') types = types.concat('Dark');
|
||||
if (types.indexOf(tools.getMove(move).type) >= 0) return false;
|
||||
}
|
||||
if (template.learnset) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user