mirror of
https://github.com/correl/mage.git
synced 2025-01-12 03:00:13 +00: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.target.common.TargetCardInASingleGraveyard;
|
||||
import mage.target.common.TargetCardInYourGraveyard;
|
||||
import mage.target.targetpointer.FixedTarget;
|
||||
import mage.target.targetpointer.FixedTargets;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
/**
|
||||
|
@ -86,7 +86,7 @@ public class ExileFromGraveCost extends CostImpl {
|
|||
cardsToExile.addAll(exiledCards);
|
||||
controller.moveCards(cardsToExile, Zone.EXILED, ability, game);
|
||||
if (setTargetPointer) {
|
||||
source.getEffects().setTargetPointer(new FixedTarget(targets.getFirstTarget(), game));
|
||||
source.getEffects().setTargetPointer(new FixedTargets(cardsToExile, game));
|
||||
}
|
||||
paid = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue