Fixed color mana payment

This commit is contained in:
magenoxx 2012-06-12 10:54:47 +04:00
parent 5be6f78d59
commit 3c9e3de9a2
2 changed files with 8 additions and 4 deletions

View file

@ -2,6 +2,7 @@ package org.mage.test.cards.mana.phyrexian;
import mage.Constants;
import mage.Constants.PhaseStep;
import org.junit.Assert;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
@ -22,8 +23,10 @@ public class PhyrexianManaTest extends CardTestPlayerBase {
setStopAt(1, PhaseStep.END_TURN);
execute();
assertLife(playerA, 20);
assertHandCount(playerA, 1);
int life = playerA.getLife();
int hand = playerA.getHand().size();
// can be played only through life pay
Assert.assertTrue(life == 20 && hand == 1 || life == 18 && hand == 0);
}
}