mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
* Fixed a bug of duration "Until your next turn".
This commit is contained in:
parent
2c63d3bff8
commit
b9c2bf4326
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue