mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
* 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:
parent
8afc1e24bb
commit
4a5d9b758e
1 changed files with 6 additions and 4 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue