Brood Sliver test - bug unconfirmed #1660

This commit is contained in:
drmDev 2016-07-25 05:28:13 -04:00
parent 0f48520697
commit f883fd345f
2 changed files with 42 additions and 3 deletions

View file

@ -25,7 +25,7 @@ public class PulmonicSliverTest extends CardTestPlayerBase {
All Slivers have "If this permanent would be put into a graveyard, you may put it on top of its owner's library instead."
*/
addCard(Zone.BATTLEFIELD, playerA, "Pulmonic Sliver");
addCard(Zone.BATTLEFIELD, playerA, "Venom Sliver"); // 2/2 slivers get deathtouch
addCard(Zone.BATTLEFIELD, playerA, "Venom Sliver"); // 1/1 slivers get deathtouch
addCard(Zone.HAND, playerB, "Doom Blade");
addCard(Zone.BATTLEFIELD, playerB, "Swamp", 2);
@ -50,7 +50,7 @@ public class PulmonicSliverTest extends CardTestPlayerBase {
All Slivers have "If this permanent would be put into a graveyard, you may put it on top of its owner's library instead."
*/
addCard(Zone.BATTLEFIELD, playerA, "Pulmonic Sliver");
addCard(Zone.BATTLEFIELD, playerA, "Venom Sliver"); // 2/2 slivers get deathtouch
addCard(Zone.BATTLEFIELD, playerA, "Venom Sliver"); // 1/1 slivers get deathtouch
addCard(Zone.HAND, playerB, "Damnation");
addCard(Zone.BATTLEFIELD, playerB, "Swamp", 4);
@ -78,7 +78,7 @@ public class PulmonicSliverTest extends CardTestPlayerBase {
All Slivers have "If this permanent would be put into a graveyard, you may put it on top of its owner's library instead."
*/
addCard(Zone.BATTLEFIELD, playerA, "Pulmonic Sliver");
addCard(Zone.BATTLEFIELD, playerA, "Venom Sliver"); // 2/2 slivers get deathtouch
addCard(Zone.BATTLEFIELD, playerA, "Venom Sliver"); // 1/1 slivers get deathtouch
addCard(Zone.HAND, playerB, "Path to Exile");
addCard(Zone.BATTLEFIELD, playerB, "Plains", 1);

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.triggers;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
/**
*
* @author escplan9 (Derek Monturo - dmontur1 at gmail dot com)
*/
public class BroodSliverTest extends CardTestPlayerBase {
/*
Reported bug: It lets the controller of Brood Sliver choose whether or not the token is created, instead of the attacking Sliver's controller.
*/
@Test
public void testTokenCreatedBySliverController() {
// Brood Sliver {4}{G} 3/3 Sliver
// Whenever a Sliver deals combat damage to a player, its controller may put a 1/1 colorless Sliver creature token onto the battlefield.
addCard(Zone.BATTLEFIELD, playerB, "Brood Sliver");
addCard(Zone.BATTLEFIELD, playerA, "Venom Sliver"); // 1/1 deathtouch granting sliver
attack(1, playerA, "Venom Sliver");
setChoice(playerA, "Yes"); // controller of venom sliver dealing damage should get the choice to create token
setStopAt(1, PhaseStep.END_COMBAT);
execute();
assertLife(playerB, 19);
assertPermanentCount(playerA, "Sliver", 1);
assertPermanentCount(playerB, "Sliver", 0);
}
}