From 4a5d9b758e51b8d3770e33720aad28582180be95 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Thu, 12 Mar 2015 17:42:19 +0100 Subject: [PATCH] * Fixed that exile costs were not applied if the exiled creature was not moved to the exile zone because of (e.g. commander) replacement effect. Exile costs are considered as paid now (117.11). --- .../mage/abilities/costs/common/ExileTargetCost.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Mage/src/mage/abilities/costs/common/ExileTargetCost.java b/Mage/src/mage/abilities/costs/common/ExileTargetCost.java index f211b58baa..e10431e850 100644 --- a/Mage/src/mage/abilities/costs/common/ExileTargetCost.java +++ b/Mage/src/mage/abilities/costs/common/ExileTargetCost.java @@ -72,11 +72,13 @@ public class ExileTargetCost extends CostImpl { return false; } permanents.add(permanent.copy()); - paid |= game.getPlayer(ability.getControllerId()).moveCardToExileWithInfo(permanent, null, null, sourceId, game, Zone.BATTLEFIELD); - } - if (!paid && targets.get(0).getNumberOfTargets() == 0) { - paid = true; + // 117.11. The actions performed when paying a cost may be modified by effects. + // Even if they are, meaning the actions that are performed don't match the actions + // that are called for, the cost has still been paid. + // so return state here is not important because the user indended to exile the target anyway + game.getPlayer(ability.getControllerId()).moveCardToExileWithInfo(permanent, null, null, sourceId, game, Zone.BATTLEFIELD); } + paid = true; } return paid; }