mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
fixed Tasigur, the Golden Fang not working with Silent Gravestone in play
This commit is contained in:
parent
f4401b32f9
commit
a5bd2659fd
1 changed files with 9 additions and 12 deletions
|
@ -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,8 +20,9 @@ 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 {
|
||||
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue