mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Allowed choosing X=0 to act as an attack cost
This commit is contained in:
parent
b352a31852
commit
4176b35f2a
1 changed files with 7 additions and 9 deletions
|
@ -86,7 +86,6 @@ class WarTaxReplacementEffect extends ReplacementEffectImpl {
|
||||||
Player player = game.getPlayer(event.getPlayerId());
|
Player player = game.getPlayer(event.getPlayerId());
|
||||||
if (player != null) {
|
if (player != null) {
|
||||||
int amount = xCosts.calculate(game, source, this);
|
int amount = xCosts.calculate(game, source, this);
|
||||||
if (amount > 0) {
|
|
||||||
String mana = "{" + amount + '}';
|
String mana = "{" + amount + '}';
|
||||||
ManaCostsImpl cost = new ManaCostsImpl(mana);
|
ManaCostsImpl cost = new ManaCostsImpl(mana);
|
||||||
if (cost.canPay(source, source.getSourceId(), event.getPlayerId(), game)
|
if (cost.canPay(source, source.getSourceId(), event.getPlayerId(), game)
|
||||||
|
@ -97,7 +96,6 @@ class WarTaxReplacementEffect extends ReplacementEffectImpl {
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue