forked from External/mage
* Fixed some card movement (fixes #4910).
This commit is contained in:
parent
7b4ca412b8
commit
df987049c0
43 changed files with 481 additions and 548 deletions
|
|
@ -7,9 +7,11 @@ package mage.target.targetpointer;
|
|||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
import mage.MageObjectReference;
|
||||
import mage.abilities.Ability;
|
||||
import mage.cards.Card;
|
||||
import mage.cards.Cards;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
|
|
@ -46,6 +48,14 @@ public class FixedTargets implements TargetPointer {
|
|||
this.initialized = true;
|
||||
}
|
||||
|
||||
public FixedTargets(Set<Card> cards, Game game) {
|
||||
for (Card card : cards) {
|
||||
MageObjectReference mor = new MageObjectReference(card.getId(), card.getZoneChangeCounter(game), game);
|
||||
targets.add(mor);
|
||||
}
|
||||
this.initialized = true;
|
||||
}
|
||||
|
||||
private FixedTargets(final FixedTargets fixedTargets) {
|
||||
this.targets.addAll(fixedTargets.targets);
|
||||
this.targetsNotInitialized.addAll(fixedTargets.targetsNotInitialized);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue