ExileFromGraveCost - Support multiple targets for setTargetPointer

This commit is contained in:
Daniel Bomar 2021-01-21 16:09:45 -06:00
parent 68807ff34f
commit 5e4b5239d8
No known key found for this signature in database
GPG key ID: C86C8658F4023918

View file

@ -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;
}