mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
* Fixed some mana handling problems of conditionalMana (GemstoneCavern) and possible exception of ChromeMox.Fixed some tests.
This commit is contained in:
parent
0051f70b8a
commit
df341bd0d6
9 changed files with 85 additions and 56 deletions
|
|
@ -135,10 +135,11 @@ public class ConstellationTest extends CardTestPlayerBase {
|
|||
@Test
|
||||
public void test_DaxosGotBoostWithLoseFlyAndGotItAgain() {
|
||||
// 112.10c If two or more effects add and remove the same ability, in general the most recent one prevails.
|
||||
addCard(Zone.HAND, playerA, daxosCard, 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 4);
|
||||
addCard(Zone.HAND, playerA, "Gravity Sphere", 1); // All creatures lose flying.
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 3);
|
||||
addCard(Zone.HAND, playerA, daxosCard, 1); // {3}{B}
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 1);
|
||||
// All creatures lose flying.
|
||||
addCard(Zone.HAND, playerA, "Gravity Sphere", 1); // World Enchantment {2}{R}
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 6);
|
||||
|
||||
// got fly on enter, lose on gravity, got fly on gravity enter
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, daxosCard);
|
||||
|
|
|
|||
|
|
@ -1,12 +1,14 @@
|
|||
package org.mage.test.cards.mana;
|
||||
|
||||
import mage.abilities.mana.ManaOptions;
|
||||
import mage.constants.ManaType;
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
import static org.mage.test.utils.ManaOptionsTestUtils.manaOptionsContain;
|
||||
import static org.mage.test.utils.ManaOptionsTestUtils.assertDuplicatedManaOptions;
|
||||
import static org.mage.test.utils.ManaOptionsTestUtils.assertManaOptions;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
@ -47,7 +49,14 @@ public class NagaVitalistTest extends CardTestPlayerBase {
|
|||
setStopAt(1, PhaseStep.PRECOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
Assert.assertTrue("playerA must cast {Any}{Any}", manaOptionsContain(playerA.getManaAvailable(currentGame), "{Any}{Any}"));
|
||||
ManaOptions manaOptions = playerA.getAvailableManaTest(currentGame);
|
||||
assertDuplicatedManaOptions(manaOptions);
|
||||
Assert.assertEquals("mana variations don't fit", 5, manaOptions.size());
|
||||
assertManaOptions("{B}{B}", manaOptions);
|
||||
assertManaOptions("{W}{W}", manaOptions);
|
||||
assertManaOptions("{U}{U}", manaOptions);
|
||||
assertManaOptions("{R}{R}", manaOptions);
|
||||
assertManaOptions("{G}{G}", manaOptions);
|
||||
}
|
||||
|
||||
public void nagaVitalist_GiftOfParadisesLandCanGiveAnyColorToNaga_Setup(int giftCastTurn, int nagaManaTapTurn, String nagaManaTapColor) {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ import mage.constants.ManaType;
|
|||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import mage.counters.CounterType;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
|
|
@ -41,7 +40,6 @@ public class VorinclexVoiceOfHungerTest extends CardTestPlayerBase {
|
|||
* Vorinclex, Voice of Hunger is not mana doubling River of Tears.
|
||||
*/
|
||||
@Test
|
||||
// @Ignore // TODO: need to fix Vorinclex, Voice of Hunger -- it's double fireup mana tap event
|
||||
public void testVorinclexVoiceofHungerRiverOfTearsManaMultiplier() {
|
||||
// Mana pools don't empty as steps and phases end.
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Upwelling", 1);
|
||||
|
|
@ -64,7 +62,6 @@ public class VorinclexVoiceOfHungerTest extends CardTestPlayerBase {
|
|||
/**
|
||||
* Vorinclex glitches with Gemstone Cavern
|
||||
*/
|
||||
@Ignore
|
||||
@Test
|
||||
public void testGemstoneCavern() {
|
||||
// Trample
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue