* Balance - Fixed possible error if player has no cards in hand.

This commit is contained in:
LevelX2 2014-11-17 12:42:42 +01:00
parent 6dc7b72198
commit 15bd62f24e
3 changed files with 4 additions and 4 deletions

View file

@ -192,7 +192,7 @@ class BalanceEffect extends OneShotEffect {
for (UUID playerId : controller.getInRange()) { for (UUID playerId : controller.getInRange()) {
Player player = game.getPlayer(playerId); Player player = game.getPlayer(playerId);
if (player != null) { if (player != null && cardsToDiscard.get(playerId) != null) {
for (UUID cardId : cardsToDiscard.get(playerId)) { for (UUID cardId : cardsToDiscard.get(playerId)) {
Card card = game.getCard(cardId); Card card = game.getCard(cardId);
if (card != null) { if (card != null) {

View file

@ -130,8 +130,8 @@ class VedalkenEngineerAbility extends ManaAbility {
class VedalkenEngineerEffect extends ManaEffect { class VedalkenEngineerEffect extends ManaEffect {
private int amount; private final int amount;
private ConditionalManaBuilder manaBuilder; private final ConditionalManaBuilder manaBuilder;
public VedalkenEngineerEffect(int amount, ConditionalManaBuilder manaBuilder) { public VedalkenEngineerEffect(int amount, ConditionalManaBuilder manaBuilder) {
super(); super();

View file

@ -102,7 +102,7 @@ import mage.players.Player;
public class MorphAbility extends StaticAbility implements AlternativeSourceCosts { public class MorphAbility extends StaticAbility implements AlternativeSourceCosts {
protected static final String ABILITY_KEYWORD = "Morph"; protected static final String ABILITY_KEYWORD = "Morph";
protected static final String REMINDER_TEXT = "(You may cast this card face down as a 2/2 creature for {3}. Turn it face up any time for its morph cost.)"; protected static final String REMINDER_TEXT = "<i>(You may cast this card face down as a 2/2 creature for {3}. Turn it face up any time for its morph cost.)</i>";
protected String ruleText; protected String ruleText;
protected AlternativeCost2Impl alternateCosts = new AlternativeCost2Impl(ABILITY_KEYWORD, REMINDER_TEXT, new GenericManaCost(3)); protected AlternativeCost2Impl alternateCosts = new AlternativeCost2Impl(ABILITY_KEYWORD, REMINDER_TEXT, new GenericManaCost(3));