mirror of
https://github.com/correl/mage.git
synced 2024-12-24 03:00:14 +00:00
* Tatterkite - Fixed that it was not prevented to add counters if the counters were added while Tatterkite entered the battlöefield (e.g. Undying).
This commit is contained in:
parent
64dea27bb3
commit
9ebc2d5991
2 changed files with 30 additions and 3 deletions
|
@ -60,7 +60,7 @@ public class Tatterkite extends CardImpl {
|
|||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// Tatterkite can't have counters placed on it.
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantHaveCountersSourceEffect(Duration.WhileOnBattlefield)));
|
||||
this.addAbility(new SimpleStaticAbility(Zone.ALL, new CantHaveCountersSourceEffect(Duration.WhileOnBattlefield)));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -228,6 +228,8 @@ public class UndyingTest extends CardTestPlayerBase {
|
|||
// Other non-Human creatures you control get +1/+1 and have undying.
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mikaeus, the Unhallowed", 1);
|
||||
|
||||
// Flying
|
||||
// Tatterkite can't have counters placed on it.
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Tatterkite", 1); // Artifact Creature - Scarecrow 2/1
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Lightning Bolt", "Tatterkite");
|
||||
|
@ -239,8 +241,33 @@ public class UndyingTest extends CardTestPlayerBase {
|
|||
|
||||
assertPermanentCount(playerA, "Tatterkite", 1);
|
||||
assertPermanentCount(playerA, "Mikaeus, the Unhallowed", 1);
|
||||
assertCounterCount("Tatterkite", CounterType.P1P1, 1);
|
||||
assertPowerToughness(playerA, "Tatterkite", 4, 3);
|
||||
assertCounterCount("Tatterkite", CounterType.P1P1, 0);
|
||||
assertPowerToughness(playerA, "Tatterkite", 3, 2);
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUndyingMikaeusAndTatterkiteSacrifice() {
|
||||
// Sacrifice a creature: Add {C}{C} to your mana pool.
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Ashnod's Altar", 1);
|
||||
// Whenever a Human deals damage to you, destroy it.
|
||||
// Other non-Human creatures you control get +1/+1 and have undying.
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mikaeus, the Unhallowed", 1);
|
||||
|
||||
// Flying
|
||||
// Tatterkite can't have counters placed on it.
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Tatterkite", 1); // Artifact Creature - Scarecrow 2/1
|
||||
|
||||
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Sacrifice a creature");
|
||||
setChoice(playerA, "Tatterkite");
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertPermanentCount(playerA, "Tatterkite", 1);
|
||||
assertPermanentCount(playerA, "Mikaeus, the Unhallowed", 1);
|
||||
assertCounterCount("Tatterkite", CounterType.P1P1, 0);
|
||||
assertPowerToughness(playerA, "Tatterkite", 3, 2);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue