Merge pull request #2802 from vereena42/FixingGen-Card

Fixing gen-card.pl
This commit is contained in:
spjspj 2017-01-17 07:20:34 +11:00 committed by GitHub
commit 6c391140c8

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";
}