* 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).

This commit is contained in:
LevelX2 2015-03-12 17:42:19 +01:00
parent 8afc1e24bb
commit 4a5d9b758e

View file

@ -72,12 +72,14 @@ public class ExileTargetCost extends CostImpl {
return false; return false;
} }
permanents.add(permanent.copy()); permanents.add(permanent.copy());
paid |= game.getPlayer(ability.getControllerId()).moveCardToExileWithInfo(permanent, null, null, sourceId, game, Zone.BATTLEFIELD); // 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);
} }
if (!paid && targets.get(0).getNumberOfTargets() == 0) {
paid = true; paid = true;
} }
}
return paid; return paid;
} }