- Removed code from the previous implementation of Shifting Shadow which is no longer needed.

This commit is contained in:
Agetian
2017-08-15 10:35:40 +00:00
parent 23981accd1
commit 74cfc733dd
2 changed files with 0 additions and 22 deletions

View File

@@ -604,20 +604,6 @@ public class GameAction {
c.setTurnInZone(tiz);
c.setCameUnderControlSinceLastUpkeep(true);
// check for related effects and correct their controller and zone if necessary
for (Card eff : game.getCardsIn(ZoneType.Command)) {
if (eff.getType().hasSubtype("Effect")) {
boolean moveWithImprinted = eff.hasSVar("MoveWithImprinted") && eff.getImprintedCards() != null && eff.getImprintedCards().contains(c);
boolean moveWithRemembered = eff.hasSVar("MoveWithRemembered") && eff.getRemembered() != null && (Iterables.contains(eff.getRemembered(), c));
if (moveWithImprinted || moveWithRemembered) {
eff.setController(c.getController(), game.getNextTimestamp());
eff.getZone().remove(eff);
c.getController().getZone(ZoneType.Command).add(eff);
}
}
}
final Map<String, Object> runParams = Maps.newHashMap();
runParams.put("Card", c);
runParams.put("OriginalController", original);

View File

@@ -112,14 +112,6 @@ public class EffectEffect extends SpellAbilityEffect {
final Card eff = createEffect(hostCard, controller, name, image);
// For effects that need to change their controller and zone together with the card remembered/imprinted on them
if (sa.hasParam("MoveWithRemembered")) {
eff.setSVar("MoveWithRemembered", "True");
}
if (sa.hasParam("MoveWithImprinted")) {
eff.setSVar("MoveWithImprinted", "True");
}
// Grant SVars first in order to give references to granted abilities
if (effectSVars != null) {
for (final String s : effectSVars) {