mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Merge fix
This commit is contained in:
parent
b5acf64772
commit
5a5c49229e
2 changed files with 3 additions and 3 deletions
|
@ -34,7 +34,7 @@ public interface ManaCosts<T extends ManaCost> extends List<T>, ManaCost {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param mana mana in strinct like "{2}{R}" or "{2/W}"
|
||||
* @param mana
|
||||
* @param extractMonoHybridGenericValue for tests only, extract generic mana value from mono hybrid string
|
||||
*/
|
||||
void load(String mana, boolean extractMonoHybridGenericValue);
|
||||
|
|
|
@ -107,7 +107,7 @@ public final class CardUtil {
|
|||
if (reduceCount > 0) {
|
||||
int restToReduce = reduceCount;
|
||||
|
||||
// first run - priority single option costs (generic)
|
||||
// first run - priority for single option costs (generic)
|
||||
for (ManaCost manaCost : manaCosts) {
|
||||
if (manaCost instanceof SnowManaCost) {
|
||||
adjustedCost.add(manaCost);
|
||||
|
@ -156,7 +156,7 @@ public final class CardUtil {
|
|||
}
|
||||
|
||||
if (manaCost instanceof MonoHybridManaCost) {
|
||||
// current implemention supports only 1 hybrid cost per object
|
||||
// current implemention supports reduce from left to right hybrid cost without cost parts announce
|
||||
MonoHybridManaCost mono = (MonoHybridManaCost) manaCost;
|
||||
int colorless = mono.getOptions().get(1).getGeneric();
|
||||
if (restToReduce != 0 && colorless > 0) {
|
||||
|
|
Loading…
Reference in a new issue