* Some minor code changes.

This commit is contained in:
LevelX2 2020-06-29 14:50:46 +02:00
parent 90965802d0
commit 5661bb1bfe
4 changed files with 7 additions and 8 deletions

View file

@ -28,7 +28,8 @@ public class EmergeAbility extends SpellAbility {
public EmergeAbility(Card card, ManaCosts<ManaCost> emergeCost) {
super(card.getSpellAbility());
this.newId();
this.emergeCost = emergeCost.copy();
this.newId(); // Why is this neccessary? will create new id anyway or not?
this.setCardName(card.getName() + " with emerge");
zone = Zone.HAND;
spellAbilityType = SpellAbilityType.BASE_ALTERNATE;
@ -37,8 +38,7 @@ public class EmergeAbility extends SpellAbility {
this.getManaCostsToPay().clear();
this.addManaCost(emergeCost.copy());
this.setRuleAtTheTop(true);
this.emergeCost = emergeCost.copy();
this.setRuleAtTheTop(true);
}
public EmergeAbility(final EmergeAbility ability) {

View file

@ -20,7 +20,7 @@ public class SpectacleAbility extends SpellAbility {
public static final String SPECTACLE_ACTIVATION_VALUE_KEY = "spectacleActivation";
private String rule;
private final String rule;
public SpectacleAbility(Card card, ManaCost spectacleCosts) {
super(card.getSpellAbility());

View file

@ -867,7 +867,7 @@ public class GameState implements Serializable, Copyable<GameState> {
}
/**
* Abilities that are applied to other objects or applie for a certain time
* Abilities that are applied to other objects or applied for a certain time
* span
*
* @param ability