From ebaeff68a2b616e9a6be5ca429568c802096157d Mon Sep 17 00:00:00 2001 From: Kris Johnson <11083252+KrisXV@users.noreply.github.com> Date: Sat, 24 Oct 2020 20:25:32 -0600 Subject: [PATCH] Restrict Calyrex-Ice and Calyrex-Shadow correctly --- data/rulesets.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/data/rulesets.ts b/data/rulesets.ts index c24e3c048c0eb..d5372e080bd07 100644 --- a/data/rulesets.ts +++ b/data/rulesets.ts @@ -117,6 +117,7 @@ export const Formats: {[k: string]: FormatData} = { let kyuremCount = 0; let necrozmaDMCount = 0; let necrozmaDWCount = 0; + let calyrexCount = 0; for (const set of team) { if (set.species === 'Kyurem-White' || set.species === 'Kyurem-Black') { if (kyuremCount > 0) { @@ -145,6 +146,15 @@ export const Formats: {[k: string]: FormatData} = { } necrozmaDWCount++; } + if (set.species === 'Calyrex-Ice' || set.species === 'Calyrex-Shadow') { + if (calyrexCount > 0) { + return [ + `You cannot have more than one Calyrex-Ice/Calyrex-Shadow.`, + `(It's untradeable and you can only make one with the Reigns of Unity.)`, + ]; + } + calyrexCount++; + } } return []; },