mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
* Balance - Fixed possible error if player has no cards in hand.
This commit is contained in:
parent
6dc7b72198
commit
15bd62f24e
3 changed files with 4 additions and 4 deletions
|
@ -192,7 +192,7 @@ class BalanceEffect extends OneShotEffect {
|
|||
|
||||
for (UUID playerId : controller.getInRange()) {
|
||||
Player player = game.getPlayer(playerId);
|
||||
if (player != null) {
|
||||
if (player != null && cardsToDiscard.get(playerId) != null) {
|
||||
for (UUID cardId : cardsToDiscard.get(playerId)) {
|
||||
Card card = game.getCard(cardId);
|
||||
if (card != null) {
|
||||
|
|
|
@ -130,8 +130,8 @@ class VedalkenEngineerAbility extends ManaAbility {
|
|||
|
||||
class VedalkenEngineerEffect extends ManaEffect {
|
||||
|
||||
private int amount;
|
||||
private ConditionalManaBuilder manaBuilder;
|
||||
private final int amount;
|
||||
private final ConditionalManaBuilder manaBuilder;
|
||||
|
||||
public VedalkenEngineerEffect(int amount, ConditionalManaBuilder manaBuilder) {
|
||||
super();
|
||||
|
|
|
@ -102,7 +102,7 @@ import mage.players.Player;
|
|||
public class MorphAbility extends StaticAbility implements AlternativeSourceCosts {
|
||||
|
||||
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 AlternativeCost2Impl alternateCosts = new AlternativeCost2Impl(ABILITY_KEYWORD, REMINDER_TEXT, new GenericManaCost(3));
|
||||
|
||||
|
|
Loading…
Reference in a new issue