mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 21:12:04 -08:00
* Some minor code changes.
This commit is contained in:
parent
90965802d0
commit
5661bb1bfe
4 changed files with 7 additions and 8 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue