From a99cce3ef1701ecfc323430e102ff17877321887 Mon Sep 17 00:00:00 2001 From: spjspj Date: Sat, 16 Sep 2017 12:02:12 +1000 Subject: [PATCH] Fix gen-existing-cards-by-set.pl --- Mage.Sets/src/mage/sets/Ixalan.java | 1 + Utils/gen-existing-cards-by-set.pl | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Mage.Sets/src/mage/sets/Ixalan.java b/Mage.Sets/src/mage/sets/Ixalan.java index 668b6bc19a8..0507cbfc847 100644 --- a/Mage.Sets/src/mage/sets/Ixalan.java +++ b/Mage.Sets/src/mage/sets/Ixalan.java @@ -258,6 +258,7 @@ public class Ixalan extends ExpansionSet { cards.add(new SetCardInfo("Skymarch Bloodletter", 124, Rarity.COMMON, mage.cards.s.SkymarchBloodletter.class)); cards.add(new SetCardInfo("Slash of Talons", 38, Rarity.COMMON, mage.cards.s.SlashOfTalons.class)); cards.add(new SetCardInfo("Sleek Schooner", 247, Rarity.UNCOMMON, mage.cards.s.SleekSchooner.class)); + cards.add(new SetCardInfo("Slice in Twain", 207, Rarity.UNCOMMON, mage.cards.s.SliceInTwain.class)); cards.add(new SetCardInfo("Snapping Sailback", 208, Rarity.UNCOMMON, mage.cards.s.SnappingSailback.class)); cards.add(new SetCardInfo("Sorcerous Spyglass", 248, Rarity.RARE, mage.cards.s.SorcerousSpyglass.class)); cards.add(new SetCardInfo("Spell Pierce", 81, Rarity.COMMON, mage.cards.s.SpellPierce.class)); diff --git a/Utils/gen-existing-cards-by-set.pl b/Utils/gen-existing-cards-by-set.pl index 800a39bd761..9c6e0a4f7ff 100755 --- a/Utils/gen-existing-cards-by-set.pl +++ b/Utils/gen-existing-cards-by-set.pl @@ -71,6 +71,7 @@ foreach $potentialSideA (sort @setCards) { #print (">>$potentialSideA\n"); if ($potentialSideA =~ m/.*,,,(\d+)(a)$/) { my $cardNumSideB = $1 . "b"; + my $orig_cardNumSideB = $1 . "b"; my $val; foreach $val (sort @setCards) { if ($val =~ m/$cardNumSideB$/) { @@ -93,6 +94,7 @@ foreach $potentialSideA (sort @setCards) { print ("Adding in: $potentialSideA \/\/ $val,,,$cardNumSideB\n"); $cardsFound = $cardsFound - 1; + $cardNumSideB = $orig_cardNumSideB; } } }