fixed Tasigur, the Golden Fang not working with Silent Gravestone in play

This commit is contained in:
Evan Kranzler 2019-01-28 19:00:03 -05:00
parent f4401b32f9
commit a5bd2659fd

View file

@ -1,7 +1,6 @@
package mage.cards.t;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
@ -12,11 +11,7 @@ import mage.abilities.keyword.DelveAbility;
import mage.cards.Card;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.Outcome;
import mage.constants.SuperType;
import mage.constants.Zone;
import mage.constants.*;
import mage.filter.common.FilterNonlandCard;
import mage.filter.predicate.other.OwnerIdPredicate;
import mage.game.Game;
@ -25,14 +20,15 @@ import mage.target.Target;
import mage.target.common.TargetCardInGraveyard;
import mage.target.common.TargetOpponent;
import java.util.UUID;
/**
*
* @author LevelX2
*/
public final class TasigurTheGoldenFang extends CardImpl {
public TasigurTheGoldenFang(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{5}{B}");
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{5}{B}");
addSuperType(SuperType.LEGENDARY);
this.subtype.add(SubType.HUMAN);
this.subtype.add(SubType.SHAMAN);
@ -42,12 +38,12 @@ public final class TasigurTheGoldenFang extends CardImpl {
// Delve
this.addAbility(new DelveAbility());
// {2}{G/U}{G/U}: Put the top two cards of your library into your graveyard, then return a nonland card of an opponent's choice from your graveyard to your hand.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutTopCardOfLibraryIntoGraveControllerEffect(2), new ManaCostsImpl("{2}{G/U}{G/U}"));
Ability ability = new SimpleActivatedAbility(new PutTopCardOfLibraryIntoGraveControllerEffect(2), new ManaCostsImpl("{2}{G/U}{G/U}"));
ability.addEffect(new TasigurTheGoldenFangEffect());
this.addAbility(ability);
}
public TasigurTheGoldenFang(final TasigurTheGoldenFang card) {
private TasigurTheGoldenFang(final TasigurTheGoldenFang card) {
super(card);
}
@ -59,12 +55,12 @@ public final class TasigurTheGoldenFang extends CardImpl {
class TasigurTheGoldenFangEffect extends OneShotEffect {
public TasigurTheGoldenFangEffect() {
TasigurTheGoldenFangEffect() {
super(Outcome.ReturnToHand);
this.staticText = ", then return a nonland card of an opponent's choice from your graveyard to your hand";
}
public TasigurTheGoldenFangEffect(final TasigurTheGoldenFangEffect effect) {
private TasigurTheGoldenFangEffect(final TasigurTheGoldenFangEffect effect) {
super(effect);
}
@ -92,6 +88,7 @@ class TasigurTheGoldenFangEffect extends OneShotEffect {
FilterNonlandCard filter = new FilterNonlandCard("nonland card from " + controller.getLogName() + " graveyard");
filter.add(new OwnerIdPredicate(controller.getId()));
Target target = new TargetCardInGraveyard(filter);
target.setNotTarget(true);
opponent.chooseTarget(outcome, target, source, game);
Card card = game.getCard(target.getFirstTarget());
if (card != null) {