* Cost increasing - fixed rollback error (#6284);

This commit is contained in:
Oleg Agafonov 2020-02-17 20:43:51 +04:00
parent 30ab06bd26
commit bd0974eecd
3 changed files with 1 additions and 4 deletions

View file

@ -137,7 +137,7 @@ public class Sets extends HashMap<String, ExpansionSet> {
if (onlyBasicLands) {
// lands is colorless
// 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()) {
if (manaLand.getWhite() > 0 && !manaNeed.isWhite()) {
cardManaOK = false;

View file

@ -184,7 +184,6 @@ public final class CardUtil {
// increase cost (add to first generic or add new)
if (reduceCount < 0) {
Assert.assertEquals("must be empty", 0, adjustedCost.size());
boolean added = false;
for (ManaCost manaCost : manaCosts) {
if (reduceCount != 0 && manaCost instanceof GenericManaCost) {

View file

@ -6,8 +6,6 @@ import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.junit.Assert;
import mage.cards.decks.DeckCardLists;
public class TestDeckChecker {