mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 12:02:01 -08:00
[DOM] fixed an issue with Karn's Temporal Sundering (fixes #7993)
This commit is contained in:
parent
c46812f380
commit
e424ba61b0
1 changed files with 7 additions and 12 deletions
|
|
@ -1,15 +1,15 @@
|
||||||
package mage.cards.k;
|
package mage.cards.k;
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
import mage.abilities.common.LegendarySpellAbility;
|
import mage.abilities.common.LegendarySpellAbility;
|
||||||
import mage.abilities.effects.OneShotEffect;
|
import mage.abilities.effects.OneShotEffect;
|
||||||
import mage.abilities.effects.common.ExileSpellEffect;
|
import mage.abilities.effects.common.ExileSpellEffect;
|
||||||
import mage.cards.Card;
|
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.*;
|
import mage.constants.CardType;
|
||||||
|
import mage.constants.Outcome;
|
||||||
|
import mage.constants.SuperType;
|
||||||
|
import mage.constants.Zone;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.permanent.Permanent;
|
import mage.game.permanent.Permanent;
|
||||||
import mage.game.turn.TurnMod;
|
import mage.game.turn.TurnMod;
|
||||||
|
|
@ -17,6 +17,8 @@ import mage.players.Player;
|
||||||
import mage.target.TargetPlayer;
|
import mage.target.TargetPlayer;
|
||||||
import mage.target.common.TargetNonlandPermanent;
|
import mage.target.common.TargetNonlandPermanent;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author JRHerlehy Created on 4/8/18.
|
* @author JRHerlehy Created on 4/8/18.
|
||||||
*/
|
*/
|
||||||
|
|
@ -69,15 +71,8 @@ class KarnsTemporalSunderingEffect extends OneShotEffect {
|
||||||
Permanent returnPermanent = game.getPermanent(source.getTargets().get(1).getFirstTarget());
|
Permanent returnPermanent = game.getPermanent(source.getTargets().get(1).getFirstTarget());
|
||||||
|
|
||||||
if (returnPermanent != null) {
|
if (returnPermanent != null) {
|
||||||
Card returnCard = returnPermanent.getMainCard();
|
controller.moveCards(returnPermanent, Zone.HAND, source, game);
|
||||||
if(returnCard != null) {
|
|
||||||
Player cardOwner = game.getPlayer(returnCard.getOwnerId());
|
|
||||||
if (cardOwner != null) {
|
|
||||||
cardOwner.moveCards(returnCard, Zone.HAND, source, game);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue