mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-03-21 17:25:10 -05:00
Validator: Make Stellar tera invalid in pre-DLC formats (#10594)
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
This commit is contained in:
parent
c55e6f6fde
commit
eed269683e
|
|
@ -684,7 +684,7 @@ export class TeamValidator {
|
|||
}
|
||||
if (set.teraType) {
|
||||
const type = dex.types.get(set.teraType);
|
||||
if (!type.exists) {
|
||||
if (!type.exists || type.isNonstandard) {
|
||||
problems.push(`${name}'s Terastal type (${set.teraType}) is invalid.`);
|
||||
} else {
|
||||
set.teraType = type.name;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user