mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
* Convoke - Fixed that it was not possible to pay with convoke mana costs containing no colorless mana.
This commit is contained in:
parent
0b20004d97
commit
e5437643c8
2 changed files with 2 additions and 7 deletions
|
@ -85,12 +85,7 @@ public class GainLifeEffect extends OneShotEffect {
|
|||
}
|
||||
StringBuilder sb = new StringBuilder();
|
||||
String message = life.getMessage();
|
||||
|
||||
if (sb.length() > 0) {
|
||||
sb.append("you gain ");
|
||||
} else {
|
||||
sb.append("You gain ");
|
||||
}
|
||||
if (message.isEmpty() || !message.equals("1")) {
|
||||
sb.append(life).append(" ");
|
||||
}
|
||||
|
|
|
@ -115,7 +115,7 @@ public class ConvokeAbility extends SimpleStaticAbility implements AlternateMana
|
|||
public void addSpecialAction(Ability source, Game game, ManaCost unpaid) {
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
if (controller != null && game.getBattlefield().contains(filterUntapped, controller.getId(), 1, game)) {
|
||||
if (unpaid.getMana().getColorless() > 0 && source.getAbilityType().equals(AbilityType.SPELL)) {
|
||||
if (source.getAbilityType().equals(AbilityType.SPELL)) {
|
||||
SpecialAction specialAction = new ConvokeSpecialAction(unpaid);
|
||||
specialAction.setControllerId(source.getControllerId());
|
||||
specialAction.setSourceId(source.getSourceId());
|
||||
|
|
Loading…
Reference in a new issue