diff --git a/Mage/src/mage/abilities/effects/common/CopyTargetSpellEffect.java b/Mage/src/mage/abilities/effects/common/CopyTargetSpellEffect.java index 5621aeca4c..c06ede3c7c 100644 --- a/Mage/src/mage/abilities/effects/common/CopyTargetSpellEffect.java +++ b/Mage/src/mage/abilities/effects/common/CopyTargetSpellEffect.java @@ -51,7 +51,7 @@ public class CopyTargetSpellEffect extends OneShotEffect @Override public boolean apply(Game game, Ability source) { - Spell spell = game.getStack().getSpell(source.getFirstTarget()); + Spell spell = game.getStack().getSpell(targetPointer.getFirst(source)); if (spell != null) { Spell copy = spell.copySpell(); copy.setControllerId(source.getControllerId()); diff --git a/Utils/gen-card.pl b/Utils/gen-card.pl index f2000e191d..d0ab61ee7f 100755 --- a/Utils/gen-card.pl +++ b/Utils/gen-card.pl @@ -74,6 +74,7 @@ $fulltoshort{'Legions'} = 'LGN'; $fulltoshort{'Lorwyn'} = 'LRW'; $fulltoshort{'Magic 2010'} = 'M10'; $fulltoshort{'Magic 2011'} = 'M11'; +$fulltoshort{'Magic 2012'} = 'M12'; $fulltoshort{'Masters Edition II'} = 'ME2'; $fulltoshort{'Masters Edition III'} = 'ME3'; $fulltoshort{'Masters Edition IV'} = 'ME4'; @@ -144,6 +145,7 @@ $wizardstous{'P4'} = 'S00'; $wizardstous{'OD'} = 'ODY'; $wizardstous{'M10'} = 'M10'; $wizardstous{'M11'} = 'M11'; +$wizardstous{'M12'} = 'M12'; $wizardstous{'LRW'} = 'LRW'; $wizardstous{'DD2'} = 'JVC'; $wizardstous{'TSB'} = 'TSB'; @@ -225,6 +227,7 @@ $knownSets{'DST'} = 'darksteel'; $knownSets{'EVE'} = 'eventide'; $knownSets{'M10'} = 'magic2010'; $knownSets{'M11'} = 'magic2011'; +$knownSets{'M12'} = 'magic2012'; $knownSets{'HOP'} = 'planechase'; $knownSets{'RAV'} = 'ravnika'; $knownSets{'ROE'} = 'riseoftheeldrazi';