Package mage.game.permanent

Examples of mage.game.permanent.Permanent.imprint()


                for (UUID uuid : target.getTargets()) {
                    Card card = player.getGraveyard().get(uuid, game);
                    if (card != null) {
                        card.moveToExile(getId(), "Sutured Ghoul", source.getSourceId(), game);
                        if (permanent != null) {
                            permanent.imprint(card.getId(), game);
                            count++;
                        }
                    }
                }
View Full Code Here


                Card card = player.getHand().get(target.getFirstTarget(), game);
                if (card != null) {
                    card.moveToExile(source.getSourceId(), "Elite Arcanist", source.getSourceId(), game);
                    Permanent permanent = game.getPermanent(source.getSourceId());
                    if (permanent != null) {
                        permanent.imprint(card.getId(), game);
                        permanent.addInfo("imprint", new StringBuilder("[Exiled card - ").append(card.getName()).append("]").toString());
                    }
                    return true;
                }
            }
View Full Code Here

    public boolean apply(Game game, Ability source) {
        Permanent permanent = game.getPermanent(targetPointer.getFirst(game, source));
        Permanent sourcePermananent = game.getPermanent(source.getSourceId());
        if (permanent != null) {
            if(sourcePermananent != null){
                sourcePermananent.imprint(permanent.getId(), game);
                sourcePermananent.addInfo("imprint", new StringBuilder("[Imprinted card - ").append(permanent.getName()).append("]").toString());
            }
            return permanent.moveToExile(null, null, source.getSourceId(), game);
        }
       
View Full Code Here

            Card card = player.getHand().get(target.getFirstTarget(), game);
            if (card != null) {
                card.moveToExile(getId(), "Chrome Mox (Imprint)", source.getSourceId(), game);
                Permanent permanent = game.getPermanent(source.getSourceId());
                if (permanent != null) {
                    permanent.imprint(card.getId(), game);
                }
                return true;
            }
        }
        return true;
View Full Code Here

                    Card card = controller.getHand().get(target.getFirstTarget(), game);
                    if (card != null) {
                        controller.moveCardToExileWithInfo(card, source.getSourceId(), sourcePermanent.getLogName() +" (Imprint)", source.getSourceId(), game, Zone.HAND);
                        Permanent permanent = game.getPermanent(source.getSourceId());
                        if (permanent != null) {
                            permanent.imprint(card.getId(), game);
                            permanent.addInfo("imprint", CardUtil.addToolTipMarkTags("[Imprinted card - " + card.getLogName() + "]"));
                        }
                    }
                }
            }
View Full Code Here

            Card card = game.getCard(target.getFirstTarget());
            if (card != null) {
                card.moveToExile(CardUtil.getCardExileZoneId(game, source), "Panoptic Mirror", source.getSourceId(), game);
                Permanent PanopticMirror = game.getPermanent(source.getSourceId());
                if(PanopticMirror != null){
                    PanopticMirror.imprint(card.getId(), game);
                }
                return true;
            }
        }
        return false;
View Full Code Here

        // Imprint a new one
        UUID target = targetPointer.getFirst(game, source);
        if (target != null) {
            Card card = game.getCard(target);
            card.moveToExile(getId(), "Mimic Vat (Imprint)", source.getSourceId(), game);
            permanent.imprint(card.getId(), game);
        }

        return true;
    }
View Full Code Here

                Card card = player.getLibrary().remove(cardId, game);
                if (card != null) {
                    card.moveToExile(source.getSourceId(), "Strata Scythe", source.getSourceId(), game);
                    Permanent permanent = game.getPermanent(source.getSourceId());
                    if (permanent != null) {
                        permanent.imprint(card.getId(), game);
                    }
                }
            }
        }
        player.shuffleLibrary(game);
View Full Code Here

            Card card = player.getHand().get(target.getFirstTarget(), game);
            if (card != null) {
                card.moveToExile(getId(), "Semblance Anvil (Imprint)", source.getSourceId(), game);
                Permanent permanent = game.getPermanent(source.getSourceId());
                if (permanent != null) {
                    permanent.imprint(card.getId(), game);
                }
                return true;
            }
        }
        return true;
View Full Code Here

                cards.remove(card);
                card.setFaceDown(true);
                card.moveToExile(getId(), "Clone Shell (Imprint)", source.getSourceId(), game);
                Permanent permanent = game.getPermanent(source.getSourceId());
                if (permanent != null) {
                    permanent.imprint(card.getId(), game);
                }
            }
            target1.clearChosen();
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.