From 5c7d7da904a64acc9420dfcf10c544c8953aa102 Mon Sep 17 00:00:00 2001 From: drmDev Date: Tue, 9 Aug 2016 21:21:14 -0400 Subject: [PATCH] another attack requirement test from reported bug on Berserkers of Blood Ridge not attacking. unconfirmed - was AI controlled though --- .../requirement/AttackRequirementTest.java | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/requirement/AttackRequirementTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/requirement/AttackRequirementTest.java index 247c2d83fb0..9c25e011779 100644 --- a/Mage.Tests/src/test/java/org/mage/test/cards/requirement/AttackRequirementTest.java +++ b/Mage.Tests/src/test/java/org/mage/test/cards/requirement/AttackRequirementTest.java @@ -48,7 +48,7 @@ public class AttackRequirementTest extends CardTestPlayerBase { // Juggernaut can't be blocked by Walls addCard(Zone.BATTLEFIELD, playerB, "Juggernaut"); // 5/3 - // Juggernaut should be forced to ttack + // Juggernaut should be forced to attack block(2, playerA, "Wall of Tanglecord", "Juggernaut"); // this block should'nt work because of Juggernauts restriction setStopAt(2, PhaseStep.POSTCOMBAT_MAIN); @@ -75,7 +75,7 @@ public class AttackRequirementTest extends CardTestPlayerBase { castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Ghostly Prison"); - // Juggernaut is forced to attack but can't without paying the Ghostly Prison cost and don't has to pay the costs so no attack + // Juggernaut is forced to attack but can't without paying the Ghostly Prison cost - no pay, no attack setStopAt(2, PhaseStep.POSTCOMBAT_MAIN); execute(); @@ -105,4 +105,18 @@ public class AttackRequirementTest extends CardTestPlayerBase { assertLife(playerB, 20); } + + // Reported bug: Berserkers of Blood Ridge not forced to attack each turn (AI controlled) + @Test + public void testSimpleAttackRequirementBerserkersofBloodRidge() { + + addCard(Zone.BATTLEFIELD, playerA, "Berserkers of Blood Ridge"); // 4/4 must attach each turn if able + + setStopAt(1, PhaseStep.POSTCOMBAT_MAIN); + execute(); + + assertLife(playerA, 20); + assertLife(playerB, 16); + assertTapped("Berserkers of Blood Ridge", true); + } }