* Obosh, the Preypiercer - Fixed that the damage doubling was always done (fixes #6871).

This commit is contained in:
LevelX2 2020-07-27 16:46:52 +02:00
parent e5529d5835
commit 7d7defe2c3
3 changed files with 41 additions and 2 deletions

View file

@ -0,0 +1,39 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.mage.test.cards.single.iko;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import org.junit.Assert;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
/**
*
* @author LevelX2
*/
public class OboshThePreypiercerTest extends CardTestPlayerBase {
@Test
public void testZeroCMSIsHandledAsOdd() {
setStrictChooseMode(true);
// At the beginning of your upkeep, flip a coin. If you lose the flip, Mana Crypt deals 3 damage to you.
// {T}: Add {C}{C}.
addCard(Zone.BATTLEFIELD, playerA, "Mana Crypt");
// Companion Your starting deck contains only cards with odd converted mana costs and land cards.
// If a source you control with an odd converted mana cost would deal damage to a permanent or player, it deals double that damage to that permanent or player instead.
addCard(Zone.BATTLEFIELD, playerA, "Obosh, the Preypiercer");
setStopAt(1, PhaseStep.PRECOMBAT_MAIN);
execute();
assertAllCommandsUsed();
Assert.assertTrue("Life has to be 20 or 17 but was " + playerA.getLife() , playerA.getLife() == 17 || playerA.getLife() == 20);
}
}