This commit is contained in:
Jeff 2018-11-29 09:26:31 -06:00
parent 258bb2b623
commit 47dac3940c
2 changed files with 2 additions and 3 deletions

View file

@ -82,7 +82,7 @@ class CommitEffect 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));
Permanent permanent = game.getPermanent(source.getFirstTarget());
if (permanent != null) {
return controller.putCardOnTopXOfLibrary(permanent, game, source, 2);
}

View file

@ -1,4 +1,3 @@
package mage.cards.j;
import java.util.HashMap;
@ -130,7 +129,7 @@ class JelevaNephaliasCastEffect extends OneShotEffect {
if (controller.choose(Outcome.PlayForFree, exileZone, target, game)) {
Card card = game.getCard(target.getFirstTarget());
if (card != null) {
return controller.cast(card.getSpellAbility(), game, true, new MageObjectReference(source.getSourceObject(game), game));
controller.playCard(card, game, true, false, new MageObjectReference(source.getSourceId(), game));
}
}
}