mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
Failing test for continuous effects
This commit is contained in:
parent
b9139ca4c9
commit
02d41fd65f
2 changed files with 34 additions and 0 deletions
|
@ -75,10 +75,12 @@ public class TamiyoTheMoonSage extends CardImpl<TamiyoTheMoonSage> {
|
|||
ability.addEffect(new SkipNextUntapTargetEffect());
|
||||
ability.addTarget(new TargetPermanent());
|
||||
this.addAbility(ability);
|
||||
|
||||
// -2: Draw a card for each tapped creature target player controls.
|
||||
ability = new LoyaltyAbility(new DrawCardControllerEffect(new TappedCreaturesControlledByTargetCount()), -2);
|
||||
ability.addTarget(new TargetPlayer());
|
||||
this.addAbility(ability);
|
||||
|
||||
// -8: You get an emblem with "You have no maximum hand size" and "Whenever a card is put into your graveyard from anywhere, you may return it to your hand."
|
||||
this.addAbility(new LoyaltyAbility(new GetEmblemEffect(new TamiyoTheMoonSageEmblem()), -8));
|
||||
}
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
package org.mage.test.cards.continuous;
|
||||
|
||||
import mage.Constants;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
* @author noxx
|
||||
*/
|
||||
public class GoblinBushwhackerTest extends CardTestPlayerBase {
|
||||
|
||||
/**
|
||||
* Tests doesn't work in library and in hand
|
||||
*/
|
||||
@Test
|
||||
public void testDoesntWorkFromHand() {
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Plains");
|
||||
addCard(Constants.Zone.HAND, playerA, "Elite Vanguard");
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Goblin Bushwhacker");
|
||||
addCard(Constants.Zone.LIBRARY, playerA, "Goblin Bushwhacker");
|
||||
addCard(Constants.Zone.GRAVEYARD, playerA, "Goblin Bushwhacker");
|
||||
|
||||
castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Elite Vanguard");
|
||||
|
||||
setStopAt(1, Constants.PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertPermanentCount(playerA, "Elite Vanguard", 1);
|
||||
assertPowerToughness(playerA, "Elite Vanguard", 2, 1);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue