* Fixed a bug of duration "Until your next turn".

This commit is contained in:
LevelX2 2014-09-25 23:26:26 +02:00
parent 2c63d3bff8
commit b9c2bf4326

View file

@ -30,9 +30,7 @@ package mage.abilities.effects;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map;
import java.util.UUID; import java.util.UUID;
import mage.abilities.Ability; import mage.abilities.Ability;
import mage.abilities.MageSingleton; import mage.abilities.MageSingleton;
@ -69,7 +67,7 @@ public abstract class ContinuousEffectImpl extends EffectImpl implements Continu
protected boolean discarded = false; // for manual effect discard protected boolean discarded = false; // for manual effect discard
protected boolean affectedObjectsSet = false; protected boolean affectedObjectsSet = false;
protected List<UUID> objects = new ArrayList<>(); protected List<UUID> objects = new ArrayList<>();
protected Map<UUID, Integer> metadata = new HashMap<>(); // protected Map<UUID, Integer> metadata = new HashMap<>();
// until your next turn // until your next turn
protected int startingTurn; protected int startingTurn;
protected UUID startingControllerId; protected UUID startingControllerId;
@ -97,6 +95,8 @@ public abstract class ContinuousEffectImpl extends EffectImpl implements Continu
this.discarded = effect.discarded; this.discarded = effect.discarded;
this.affectedObjectsSet = effect.affectedObjectsSet; this.affectedObjectsSet = effect.affectedObjectsSet;
this.objects.addAll(effect.objects); this.objects.addAll(effect.objects);
this.startingTurn = effect.startingTurn;
this.startingControllerId = effect.startingControllerId;
} }
@Override @Override