forked from External/mage
Some changes to mana handling to handle {C} mana.
This commit is contained in:
parent
7a3c0bb884
commit
782190bac3
185 changed files with 700 additions and 566 deletions
|
|
@ -148,8 +148,8 @@ public class ConditionalMana extends Mana implements Serializable {
|
|||
if (filter.isRed()) {
|
||||
red = 0;
|
||||
}
|
||||
if (filter.isColorless()) {
|
||||
colorless = 0;
|
||||
if (filter.isGeneric()) {
|
||||
generic = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -187,7 +187,7 @@ public class ConditionalMana extends Mana implements Serializable {
|
|||
white = 0;
|
||||
break;
|
||||
case COLORLESS:
|
||||
colorless = 0;
|
||||
generic = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -210,7 +210,7 @@ public class ConditionalMana extends Mana implements Serializable {
|
|||
white += amount;;
|
||||
break;
|
||||
case COLORLESS:
|
||||
colorless += amount;;
|
||||
generic += amount;;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue