forked from External/mage
New ConditionalMana support.
This commit is contained in:
parent
67a6c9dcf5
commit
ed3f96c668
58 changed files with 612 additions and 145 deletions
|
|
@ -1,5 +1,6 @@
|
|||
package mage.abilities.effects.common;
|
||||
|
||||
import mage.ConditionalMana;
|
||||
import mage.Mana;
|
||||
import mage.abilities.Ability;
|
||||
import mage.game.Game;
|
||||
|
|
@ -13,6 +14,12 @@ public class BasicManaEffect extends ManaEffect<BasicManaEffect> {
|
|||
staticText = "Add " + mana.toString() + " to your mana pool";
|
||||
}
|
||||
|
||||
public BasicManaEffect(ConditionalMana conditionalMana) {
|
||||
super();
|
||||
this.mana = conditionalMana;
|
||||
staticText = "Add " + mana.toString() + " to your mana pool. " + conditionalMana.getDescription();
|
||||
}
|
||||
|
||||
public BasicManaEffect(final BasicManaEffect effect) {
|
||||
super(effect);
|
||||
this.mana = effect.mana.copy();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue