mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 04:22:01 -08:00
change ManaSpentToCastCondition to enum
This commit is contained in:
parent
3f94bdf944
commit
d2f5d8dbed
36 changed files with 59 additions and 58 deletions
|
|
@ -1,5 +1,3 @@
|
|||
|
||||
|
||||
package mage.abilities.condition.common;
|
||||
|
||||
import mage.Mana;
|
||||
|
|
@ -15,13 +13,16 @@ import mage.watchers.common.ManaSpentToCastWatcher;
|
|||
*
|
||||
* @author LevelX2
|
||||
*/
|
||||
|
||||
|
||||
public class ManaWasSpentCondition implements Condition {
|
||||
public enum ManaWasSpentCondition implements Condition {
|
||||
WHITE(ColoredManaSymbol.W),
|
||||
BLUE(ColoredManaSymbol.U),
|
||||
BLACK(ColoredManaSymbol.B),
|
||||
RED(ColoredManaSymbol.R),
|
||||
GREEN(ColoredManaSymbol.G);
|
||||
|
||||
protected ColoredManaSymbol coloredManaSymbol;
|
||||
|
||||
public ManaWasSpentCondition(ColoredManaSymbol coloredManaSymbol) {
|
||||
ManaWasSpentCondition(ColoredManaSymbol coloredManaSymbol) {
|
||||
this.coloredManaSymbol = coloredManaSymbol;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue