Fixing gen-card.pl

This commit is contained in:
vereena42 2017-01-15 16:30:28 +01:00
parent b7c0c1e8b4
commit bf5f3d861c

View file

@ -108,7 +108,7 @@ if (!exists $cards{$cardName}) {
}
# Check if card is already implemented
my $fileName = "../Mage.Sets/src/mage/cards/".substr($cardName, 0, 1)."/".toCamelCase($cardName).".java";
my $fileName = "../Mage.Sets/src/mage/cards/".lc(substr($cardName, 0, 1))."/".toCamelCase($cardName).".java";
if(-e $fileName) {
die "$cardName is already implemented.\n";
}