* Convoke - Fixed that it was not possible to pay with convoke mana costs containing no colorless mana.

This commit is contained in:
LevelX2 2015-03-23 01:09:53 +01:00
parent 0b20004d97
commit e5437643c8
2 changed files with 2 additions and 7 deletions

View file

@ -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 ");
}
sb.append("you gain ");
if (message.isEmpty() || !message.equals("1")) {
sb.append(life).append(" ");
}

View file

@ -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());