Skip to content

Commit

Permalink
Restrict Calyrex-Ice and Calyrex-Shadow correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisXV authored and Quanyails committed May 12, 2021
1 parent f1c6b26 commit ebaeff6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions data/rulesets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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 [];
},
Expand Down

0 comments on commit ebaeff6

Please sign in to comment.