mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
Fix DoIfCostPaid effect when it is not optional.
This commit is contained in:
parent
0495c5a17a
commit
596e2f7f19
2 changed files with 33 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue