mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
- Fixed #5401
This commit is contained in:
parent
258bb2b623
commit
47dac3940c
2 changed files with 2 additions and 3 deletions
|
@ -82,7 +82,7 @@ class CommitEffect extends OneShotEffect {
|
||||||
public boolean apply(Game game, Ability source) {
|
public boolean apply(Game game, Ability source) {
|
||||||
Player controller = game.getPlayer(source.getControllerId());
|
Player controller = game.getPlayer(source.getControllerId());
|
||||||
if (controller != null) {
|
if (controller != null) {
|
||||||
Permanent permanent = game.getPermanent(getTargetPointer().getFirst(game, source));
|
Permanent permanent = game.getPermanent(source.getFirstTarget());
|
||||||
if (permanent != null) {
|
if (permanent != null) {
|
||||||
return controller.putCardOnTopXOfLibrary(permanent, game, source, 2);
|
return controller.putCardOnTopXOfLibrary(permanent, game, source, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
package mage.cards.j;
|
package mage.cards.j;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
@ -130,7 +129,7 @@ class JelevaNephaliasCastEffect extends OneShotEffect {
|
||||||
if (controller.choose(Outcome.PlayForFree, exileZone, target, game)) {
|
if (controller.choose(Outcome.PlayForFree, exileZone, target, game)) {
|
||||||
Card card = game.getCard(target.getFirstTarget());
|
Card card = game.getCard(target.getFirstTarget());
|
||||||
if (card != null) {
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue