mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-04-26 18:57:15 -05:00
Balanced Hackmons: Fix validation
This commit is contained in:
parent
3ef909ecef
commit
7b8255eb34
|
|
@ -2525,6 +2525,16 @@ export const Rulesets: {[k: string]: FormatData} = {
|
|||
set.ability = 'Fairy Aura';
|
||||
}
|
||||
}
|
||||
for (const moveid of set.moves) {
|
||||
const move = this.dex.moves.get(moveid);
|
||||
if (move.isNonstandard && move.isNonstandard !== 'Unobtainable' && !this.ruleTable.has(`+move:${move.id}`)) {
|
||||
return [`${move.name} is illegal.`];
|
||||
}
|
||||
}
|
||||
const item = this.dex.items.get(set.item);
|
||||
if (item.isNonstandard && item.isNonstandard !== 'Unobtainable' && !this.ruleTable.has(`+item:${item.id}`)) {
|
||||
return [`${item.name} is illegal.`];
|
||||
}
|
||||
return problems;
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user