mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08:00
ExileFromGraveCost - Support multiple targets for setTargetPointer
This commit is contained in:
parent
68807ff34f
commit
5e4b5239d8
1 changed files with 2 additions and 2 deletions
|
|
@ -16,7 +16,7 @@ import mage.game.Game;
|
||||||
import mage.players.Player;
|
import mage.players.Player;
|
||||||
import mage.target.common.TargetCardInASingleGraveyard;
|
import mage.target.common.TargetCardInASingleGraveyard;
|
||||||
import mage.target.common.TargetCardInYourGraveyard;
|
import mage.target.common.TargetCardInYourGraveyard;
|
||||||
import mage.target.targetpointer.FixedTarget;
|
import mage.target.targetpointer.FixedTargets;
|
||||||
import mage.util.CardUtil;
|
import mage.util.CardUtil;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -86,7 +86,7 @@ public class ExileFromGraveCost extends CostImpl {
|
||||||
cardsToExile.addAll(exiledCards);
|
cardsToExile.addAll(exiledCards);
|
||||||
controller.moveCards(cardsToExile, Zone.EXILED, ability, game);
|
controller.moveCards(cardsToExile, Zone.EXILED, ability, game);
|
||||||
if (setTargetPointer) {
|
if (setTargetPointer) {
|
||||||
source.getEffects().setTargetPointer(new FixedTarget(targets.getFirstTarget(), game));
|
source.getEffects().setTargetPointer(new FixedTargets(cardsToExile, game));
|
||||||
}
|
}
|
||||||
paid = true;
|
paid = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue