* Fixed Sightless Brawler cannot attack with other creatures attacking (fixes #2133).

This commit is contained in:
LevelX2 2016-08-06 12:30:52 +02:00
parent 14c02bc756
commit 286dc55396
5 changed files with 77 additions and 23 deletions

View file

@ -362,7 +362,7 @@ public class BestowTest extends CardTestPlayerBase {
Assert.assertEquals("Nighthowler has to be a creature", true, nighthowler.getCardType().contains(CardType.CREATURE));
}
@Test
public void testSightlessBrawlerCantAttackAloneEnforced() {
addCard(Zone.BATTLEFIELD, playerA, "Plains", 5);
@ -373,14 +373,14 @@ public class BestowTest extends CardTestPlayerBase {
// Enchanted creature gets +3/+2 and can't attack alone.
addCard(Zone.BATTLEFIELD, playerA, "Sightless Brawler");
attack(1, playerA, "Sightless Brawler");
setStopAt(1,PhaseStep.END_COMBAT);
attack(1, playerA, "Sightless Brawler");
setStopAt(1, PhaseStep.END_COMBAT);
execute();
assertLife(playerB, 20);
assertTapped("Sightless Brawler", false);
}
@Test
public void testSightlessBrawlerAttacksWithOthers() {
addCard(Zone.BATTLEFIELD, playerA, "Plains", 5);
@ -389,18 +389,18 @@ public class BestowTest extends CardTestPlayerBase {
// Bestow 4W (If you cast this card for its bestow cost, it's an Aura spell with enchant creature. It becomes a creature again if it's not attached to a creature.)
// Sightless Brawler can't attack alone.
// Enchanted creature gets +3/+2 and can't attack alone.
addCard(Zone.BATTLEFIELD, playerA, "Sightless Brawler");
addCard(Zone.BATTLEFIELD, playerA, "Sightless Brawler"); // 3/2
addCard(Zone.BATTLEFIELD, playerA, "Elite Vanguard"); // {W} 2/1 creature
attack(1, playerA, "Sightless Brawler");
attack(1, playerA, "Elite Vanguard");
setStopAt(1,PhaseStep.END_COMBAT);
setStopAt(1, PhaseStep.END_COMBAT);
execute();
assertLife(playerB, 15);
assertTapped("Sightless Brawler", true);
}
@Test
public void testSightlessBrawlerBestowedCantAttackAloneEnforced() {
addCard(Zone.BATTLEFIELD, playerA, "Plains", 5);
@ -414,15 +414,15 @@ public class BestowTest extends CardTestPlayerBase {
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Sightless Brawler using bestow", "Elite Vanguard");
attack(1, playerA, "Elite Vanguard");
setStopAt(1,PhaseStep.END_COMBAT);
setStopAt(1, PhaseStep.END_COMBAT);
execute();
assertHandCount(playerA, "Sightless Brawler", 0);
assertLife(playerB, 20);
assertTapped("Elite Vanguard", false);
assertPowerToughness(playerA, "Elite Vanguard", 5, 3); // 2/1 + 3/2 = 5/3
}
@Test
public void testSightlessBrawlerBestowedAttacksWithOthers() {
addCard(Zone.BATTLEFIELD, playerA, "Plains", 5);
@ -438,9 +438,9 @@ public class BestowTest extends CardTestPlayerBase {
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Sightless Brawler using bestow", "Elite Vanguard");
attack(1, playerA, "Elite Vanguard");
attack(1, playerA, "Memnite");
setStopAt(1,PhaseStep.END_COMBAT);
setStopAt(1, PhaseStep.END_COMBAT);
execute();
assertHandCount(playerA, "Sightless Brawler", 0);
assertLife(playerB, 14);
assertTapped("Elite Vanguard", true);