mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- Removed code from the previous implementation of Shifting Shadow which is no longer needed.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user