Validator: Make Stellar tera invalid in pre-DLC formats (#10594)
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run

This commit is contained in:
Karthik Bandagonda 2024-10-02 14:52:09 -07:00 committed by GitHub
parent c55e6f6fde
commit eed269683e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;