mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
* Flashback ability - Fixed that flashback abilities with non mana costs (e.g. Cabal Therapy) added the costs wrongly again as additional costs to the tooltip text of the card.
This commit is contained in:
parent
ad6898ca54
commit
a229d4d260
9 changed files with 52 additions and 9 deletions
|
|
@ -95,6 +95,7 @@ public abstract class AbilityImpl<T extends AbilityImpl<T>> implements Ability {
|
|||
protected boolean usesStack = true;
|
||||
protected boolean ruleAtTheTop = false;
|
||||
protected boolean ruleVisible = true;
|
||||
protected boolean ruleAdditionalCostsVisible = true;
|
||||
|
||||
@Override
|
||||
public abstract T copy();
|
||||
|
|
@ -130,6 +131,7 @@ public abstract class AbilityImpl<T extends AbilityImpl<T>> implements Ability {
|
|||
this.modes = ability.modes.copy();
|
||||
this.ruleAtTheTop = ability.ruleAtTheTop;
|
||||
this.ruleVisible = ability.ruleVisible;
|
||||
this.ruleAdditionalCostsVisible = ability.ruleAdditionalCostsVisible;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -760,7 +762,16 @@ public abstract class AbilityImpl<T extends AbilityImpl<T>> implements Ability {
|
|||
this.ruleVisible = ruleVisible;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getAdditionalCostsRuleVisible() {
|
||||
return ruleAdditionalCostsVisible;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setAdditionalCostsRuleVisible(boolean ruleAdditionalCostsVisible) {
|
||||
this.ruleAdditionalCostsVisible = ruleAdditionalCostsVisible;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UUID getOriginalId() {
|
||||
return this.originalId;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue