- Adding "UseImprinted" Param to RepeatEach for use with SAs that do something else with Remembered Cards.

This commit is contained in:
Sol
2012-11-11 18:41:52 +00:00
parent d410e6bac4
commit 2b2d5e7b2f

View File

@@ -30,6 +30,8 @@ public class RepeatEachEffect extends SpellEffect {
GameState game = Singletons.getModel().getGame(); GameState game = Singletons.getModel().getGame();
boolean useImprinted = sa.hasParam("UseImprinted");
if (sa.hasParam("RepeatCards")) { if (sa.hasParam("RepeatCards")) {
ZoneType zone = sa.hasParam("Zone") ? ZoneType.smartValueOf(sa.getParam("Zone")) : ZoneType.Battlefield; ZoneType zone = sa.hasParam("Zone") ? ZoneType.smartValueOf(sa.getParam("Zone")) : ZoneType.Battlefield;
@@ -37,9 +39,18 @@ public class RepeatEachEffect extends SpellEffect {
sa.getParam("RepeatCards"), source.getController(), source); sa.getParam("RepeatCards"), source.getController(), source);
for(Card card : repeatCards) { for(Card card : repeatCards) {
source.addRemembered(card); if (useImprinted) {
source.addImprinted(card);
} else {
source.addRemembered(card);
}
AbilityFactory.resolve(repeat, false); AbilityFactory.resolve(repeat, false);
source.removeRemembered(card); if (useImprinted) {
source.removeImprinted(card);
} else {
source.removeRemembered(card);
}
} }
} }