This commit is contained in:
Jeff 2019-02-26 09:11:13 -06:00
parent be37d58dac
commit 97016dcd7e
2 changed files with 6 additions and 6 deletions

View file

@ -1,4 +1,3 @@
package mage.cards.n;
import java.util.UUID;
@ -107,7 +106,8 @@ class NettlevineBlightEffect extends OneShotEffect {
if (chosenPermanent != null) {
Card nettlevineBlightCard = game.getCard(source.getSourceId());
if (nettlevineBlightCard != null) {
nettlevineBlight.attachTo(chosenPermanent.getId(), game);
game.getState().setValue("attachTo:" + nettlevineBlight.getId(), chosenPermanent);
chosenPermanent.addAttachment(nettlevineBlight.getId(), game);
return true;
}
}

View file

@ -19,11 +19,11 @@ import mage.constants.SubType;
import mage.constants.SuperType;
import mage.game.Game;
import mage.game.command.emblems.TeferiHeroOfDominariaEmblem;
import mage.game.permanent.Permanent;
import mage.players.Player;
import mage.target.common.TargetNonlandPermanent;
import java.util.UUID;
import mage.cards.Card;
/**
* @author LevelX2
@ -85,9 +85,9 @@ class TeferiHeroOfDominariaSecondEffect extends OneShotEffect {
public boolean apply(Game game, Ability source) {
Player controller = game.getPlayer(source.getControllerId());
if (controller != null) {
Permanent permanent = game.getPermanent(getTargetPointer().getFirst(game, source));
if (permanent != null) {
controller.putCardOnTopXOfLibrary(permanent, game, source, 3);
Card card = game.getCard(getTargetPointer().getFirst(game, source));
if (card != null) {
controller.putCardOnTopXOfLibrary(card, game, source, 3);
}
return true;
}