mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 04:22:01 -08:00
* 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) {
|
||||
// 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;
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue