mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
Detection Tower and Witchbane Orb interaction bug confirmed for #5796
This commit is contained in:
parent
639c4fab13
commit
79a99a0866
2 changed files with 55 additions and 1 deletions
|
|
@ -426,7 +426,7 @@ public class CursesTest extends CardTestPlayerBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Reported bug issue #3326 (NOTE test is failing due to bug in code)
|
* Reported bug issue #3326
|
||||||
* When {Witchbane Orb} triggers when entering the field and there IS a curse attached to you, an error message (I sadly skipped) appears and your turn is reset.
|
* When {Witchbane Orb} triggers when entering the field and there IS a curse attached to you, an error message (I sadly skipped) appears and your turn is reset.
|
||||||
This happened to me in a 4-player Commander game with {Curse of the Shallow Graves} on the field.
|
This happened to me in a 4-player Commander game with {Curse of the Shallow Graves} on the field.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,54 @@
|
||||||
|
/*
|
||||||
|
* 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.asthough;
|
||||||
|
|
||||||
|
import mage.constants.PhaseStep;
|
||||||
|
import mage.constants.Zone;
|
||||||
|
import org.junit.Test;
|
||||||
|
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author drmDev
|
||||||
|
*/
|
||||||
|
public class DidNotHaveHexproofTest extends CardTestPlayerBase {
|
||||||
|
|
||||||
|
/*
|
||||||
|
Witchbane Orb (4)
|
||||||
|
When Witchbane Orb enters the battlefield, destroy all Curses attached to you.
|
||||||
|
You have hexproof. (You can't be the target of spells or abilities your opponents control, including Aura spells.)
|
||||||
|
*/
|
||||||
|
public static final String wOrb = "Witchbane Orb";
|
||||||
|
|
||||||
|
/*
|
||||||
|
Detection Tower (Land)
|
||||||
|
{T}: Add Colorless.
|
||||||
|
1, {T}: Until end of turn, your opponents and creatures your opponents control with hexproof can be the targets of spells and abilities you control
|
||||||
|
as though they didn't have hexproof.
|
||||||
|
*/
|
||||||
|
public static final String dTower = "Detection Tower";
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void detectionTowerAllowsTargettingPlayerWithWitchbaneOrb() {
|
||||||
|
|
||||||
|
addCard(Zone.BATTLEFIELD, playerA, dTower);
|
||||||
|
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 2);
|
||||||
|
addCard(Zone.HAND, playerA, "Shock"); // {R} 2 dmg to any target
|
||||||
|
addCard(Zone.BATTLEFIELD, playerB, wOrb);
|
||||||
|
|
||||||
|
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{1}");
|
||||||
|
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Shock", playerB);
|
||||||
|
|
||||||
|
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||||
|
execute();
|
||||||
|
|
||||||
|
assertTappedCount("Mountain", true, 2);
|
||||||
|
assertTapped(dTower, true);
|
||||||
|
assertGraveyardCount(playerA, "Shock", 1);
|
||||||
|
assertLife(playerB, 18);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue