forked from External/mage
* Cost increasing - fixed rollback error (#6284);
This commit is contained in:
parent
30ab06bd26
commit
bd0974eecd
3 changed files with 1 additions and 4 deletions
|
|
@ -137,7 +137,7 @@ public class Sets extends HashMap<String, ExpansionSet> {
|
||||||
if (onlyBasicLands) {
|
if (onlyBasicLands) {
|
||||||
// lands is colorless
|
// lands is colorless
|
||||||
// discard not needed color by mana produce
|
// discard not needed color by mana produce
|
||||||
Assert.assertEquals("only basic lands allow, but found " + card.getName(), 1, card.getMana().size());
|
//Assert.assertEquals("only basic lands allow, but found " + card.getName(), 1, card.getMana().size());
|
||||||
for (Mana manaLand : card.getMana()) {
|
for (Mana manaLand : card.getMana()) {
|
||||||
if (manaLand.getWhite() > 0 && !manaNeed.isWhite()) {
|
if (manaLand.getWhite() > 0 && !manaNeed.isWhite()) {
|
||||||
cardManaOK = false;
|
cardManaOK = false;
|
||||||
|
|
|
||||||
|
|
@ -184,7 +184,6 @@ public final class CardUtil {
|
||||||
|
|
||||||
// increase cost (add to first generic or add new)
|
// increase cost (add to first generic or add new)
|
||||||
if (reduceCount < 0) {
|
if (reduceCount < 0) {
|
||||||
Assert.assertEquals("must be empty", 0, adjustedCost.size());
|
|
||||||
boolean added = false;
|
boolean added = false;
|
||||||
for (ManaCost manaCost : manaCosts) {
|
for (ManaCost manaCost : manaCosts) {
|
||||||
if (reduceCount != 0 && manaCost instanceof GenericManaCost) {
|
if (reduceCount != 0 && manaCost instanceof GenericManaCost) {
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,6 @@ import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.junit.Assert;
|
|
||||||
|
|
||||||
import mage.cards.decks.DeckCardLists;
|
import mage.cards.decks.DeckCardLists;
|
||||||
|
|
||||||
public class TestDeckChecker {
|
public class TestDeckChecker {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue