public void adjustCosts(Ability ability, Game game) {
Player player = game.getPlayer(controllerId);
if (player == null || !(ability instanceof SpellAbility)) {
return;
}
Target target = new TargetCardInYourGraveyard(1, Integer.MAX_VALUE, new FilterCard());
target.setTargetName("cards to delve from your graveyard");
if (!target.canChoose(sourceId, controllerId, game)) {
return;
}
if (!CardUtil.isCheckPlayableMode(ability) && player.chooseUse(Outcome.Detriment, "Delve cards from your graveyard?", game)) {
player.chooseTarget(Outcome.Detriment, target, ability, game);
if (target.getTargets().size() > 0) {
int adjCost = 0;
for (UUID cardId: target.getTargets()) {
Card card = game.getCard(cardId);
if (card == null) {
continue;
}
player.moveCardToExileWithInfo(card, null, "", getSourceId(), game, Zone.GRAVEYARD);