forked from External/mage
[AER] Added Battke at the Bridge.
This commit is contained in:
parent
24f72004e3
commit
c2852ca233
7 changed files with 246 additions and 6 deletions
|
|
@ -88,6 +88,8 @@ public class Spell extends StackObjImpl implements Card {
|
|||
private boolean faceDown;
|
||||
private boolean countered;
|
||||
|
||||
private boolean doneActivatingManaAbilities; // if this is true, the player is no longer allowed to pay the spell costs with activating of mana abilies
|
||||
|
||||
public Spell(Card card, SpellAbility ability, UUID controllerId, Zone fromZone) {
|
||||
this.card = card;
|
||||
this.color = card.getColor(null).copy();
|
||||
|
|
@ -108,6 +110,7 @@ public class Spell extends StackObjImpl implements Card {
|
|||
this.controllerId = controllerId;
|
||||
this.fromZone = fromZone;
|
||||
this.countered = false;
|
||||
this.doneActivatingManaAbilities = false;
|
||||
}
|
||||
|
||||
public Spell(final Spell spell) {
|
||||
|
|
@ -135,6 +138,7 @@ public class Spell extends StackObjImpl implements Card {
|
|||
this.color = spell.color.copy();
|
||||
this.frameColor = spell.color.copy();
|
||||
this.frameStyle = spell.frameStyle;
|
||||
this.doneActivatingManaAbilities = spell.doneActivatingManaAbilities;
|
||||
}
|
||||
|
||||
public boolean activate(Game game, boolean noMana) {
|
||||
|
|
@ -383,6 +387,14 @@ public class Spell extends StackObjImpl implements Card {
|
|||
}
|
||||
}
|
||||
|
||||
public boolean isDoneActivatingManaAbilities() {
|
||||
return doneActivatingManaAbilities;
|
||||
}
|
||||
|
||||
public void setDoneActivatingManaAbilities(boolean doneActivatingManaAbilities) {
|
||||
this.doneActivatingManaAbilities = doneActivatingManaAbilities;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UUID getSourceId() {
|
||||
return card.getId();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue