mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 19:41:59 -08:00
Praetor's Grasp
This commit is contained in:
parent
29e57830b4
commit
cd6c671837
1 changed files with 4 additions and 7 deletions
|
|
@ -27,13 +27,7 @@
|
||||||
*/
|
*/
|
||||||
package mage.sets.newphyrexia;
|
package mage.sets.newphyrexia;
|
||||||
|
|
||||||
import java.util.UUID;
|
import mage.Constants.*;
|
||||||
import mage.Constants.AsThoughEffectType;
|
|
||||||
import mage.Constants.CardType;
|
|
||||||
import mage.Constants.Duration;
|
|
||||||
import mage.Constants.Outcome;
|
|
||||||
import mage.Constants.Rarity;
|
|
||||||
import mage.Constants.Zone;
|
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
import mage.abilities.effects.AsThoughEffectImpl;
|
import mage.abilities.effects.AsThoughEffectImpl;
|
||||||
import mage.abilities.effects.OneShotEffect;
|
import mage.abilities.effects.OneShotEffect;
|
||||||
|
|
@ -46,6 +40,8 @@ import mage.players.Player;
|
||||||
import mage.target.common.TargetCardInLibrary;
|
import mage.target.common.TargetCardInLibrary;
|
||||||
import mage.target.common.TargetOpponent;
|
import mage.target.common.TargetOpponent;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author BetaSteward
|
* @author BetaSteward
|
||||||
|
|
@ -104,6 +100,7 @@ class PraetorsGraspEffect extends OneShotEffect<PraetorsGraspEffect> {
|
||||||
Card card = opponent.getLibrary().remove(targetId, game);
|
Card card = opponent.getLibrary().remove(targetId, game);
|
||||||
if (card != null) {
|
if (card != null) {
|
||||||
card.setFaceDown(true);
|
card.setFaceDown(true);
|
||||||
|
card.setControllerId(player.getId());
|
||||||
card.moveToExile(getId(), "Praetor's Grasp", source.getSourceId(), game);
|
card.moveToExile(getId(), "Praetor's Grasp", source.getSourceId(), game);
|
||||||
game.addEffect(new PraetorsGraspPlayEffect(card.getId()), source);
|
game.addEffect(new PraetorsGraspPlayEffect(card.getId()), source);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue