Fix DoIfCostPaid effect when it is not optional.

This commit is contained in:
Quercitron 2016-05-02 16:06:56 +03:00
parent 0495c5a17a
commit 596e2f7f19
2 changed files with 33 additions and 1 deletions

View file

@ -67,7 +67,7 @@ public class DoIfCostPaid extends OneShotEffect {
message = CardUtil.replaceSourceName(message, mageObject.getLogName());
boolean result = true;
if (cost.canPay(source, source.getSourceId(), player.getId(), game)
&& (optional && player.chooseUse(executingEffects.get(0).getOutcome(), message, source, game))) {
&& (!optional || player.chooseUse(executingEffects.get(0).getOutcome(), message, source, game))) {
cost.clearPaid();
if (cost.pay(source, game, source.getSourceId(), player.getId(), false)) {
for (Effect effect : executingEffects) {