Package mage.cards

Examples of mage.cards.Card.assignNewId()


    }

    @Override
    public Card copyCard(Card cardToCopy, Ability source, UUID newController) {
        Card copiedCard = cardToCopy.copy();
        copiedCard.assignNewId();
        copiedCard.setControllerId(newController);
        copiedCard.setCopy(true);
        Set<Card> cards = new HashSet<>();
        cards.add(copiedCard);
        loadCards(cards, source.getControllerId());
View Full Code Here


        if (card == null || permanent == null) {
            return false;
        }
        card.moveToExile(null, "Dimir Doppelganger", source.getSourceId(), game);
        Card cardToCopy = card.copy();
        cardToCopy.assignNewId();
        permanent.setName(cardToCopy.getName());
        permanent.getPower().setValue(cardToCopy.getPower().getValue());
        permanent.getToughness().setValue(cardToCopy.getToughness().getValue());
        permanent.getColor().setColor(cardToCopy.getColor());
        permanent.getManaCost().clear();
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.