Package mage.cards

Examples of mage.cards.Card.copy()


                for (UUID targetId: targets.get(0).getTargets()) {
                    Card card = player.getHand().get(targetId, game);
                    if (card == null) {
                        return false;
                    }
                    this.cards.add(card.copy());
                    paid |= player.discard(card, ability, game);
                }
            }
        }
        return paid;
View Full Code Here


        if (card == null || permanent == null) {
            return false;
        }
        if (IdOfCopiedCard == null || !IdOfCopiedCard.equals((UUID) object)) {
            IdOfCopiedCard = (UUID) object;
            cardToCopy = card.copy();
            cardToCopy.assignNewId();
        }
        permanent.getPower().setValue(cardToCopy.getPower().getValue());
        permanent.getToughness().setValue(cardToCopy.getToughness().getValue());
        permanent.getColor().setColor(cardToCopy.getColor());
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.