mirror of
https://github.com/magefree/mage.git
synced 2026-01-25 12:49:39 -08:00
* Corpse Augur - Fixed that all cards in target players graveyard were counted instead of only creature cards.
This commit is contained in:
parent
63915101f5
commit
bdc9260dfa
2 changed files with 26 additions and 5 deletions
|
|
@ -38,6 +38,7 @@ import mage.abilities.effects.common.LoseLifeSourceControllerEffect;
|
|||
import mage.cards.CardImpl;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Rarity;
|
||||
import mage.filter.common.FilterCreatureCard;
|
||||
import mage.target.TargetPlayer;
|
||||
|
||||
/**
|
||||
|
|
@ -55,10 +56,11 @@ public class CorpseAugur extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// When Corpse Augur dies, you draw X cards and you lose X life, where X is the number of creature cards in target player's graveyard.
|
||||
Effect effect = new DrawCardSourceControllerEffect(new CardsInTargetPlayersGraveyardCount());
|
||||
CardsInTargetPlayersGraveyardCount dynamicValue = new CardsInTargetPlayersGraveyardCount(new FilterCreatureCard("the number of creature cards"));
|
||||
Effect effect = new DrawCardSourceControllerEffect(dynamicValue);
|
||||
effect.setText("You draw X cards");
|
||||
Ability ability = new DiesTriggeredAbility(effect, false);
|
||||
effect = new LoseLifeSourceControllerEffect(new CardsInTargetPlayersGraveyardCount());
|
||||
effect = new LoseLifeSourceControllerEffect(dynamicValue);
|
||||
effect.setText("and you lose X life, where X is the number of creature cards in target player's graveyard");
|
||||
ability.addEffect(effect);
|
||||
ability.addTarget(new TargetPlayer());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue