Package mage.game.permanent

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


    @Override
    public Permanent copyPermanent(Duration duration, Permanent copyFromPermanent, Permanent copyToPermanent, Ability source, ApplyToPermanent applier) {
        Permanent permanent = copyFromPermanent.copy();

        //getState().addCard(permanent);
        permanent.reset(this);
        if (copyFromPermanent.isMorphCard() && copyFromPermanent.isFaceDown()) {
            MorphAbility.setPermanentToMorph(permanent);
        }
        permanent.assignNewId();
        if (copyFromPermanent.isTransformed()) {
View Full Code Here


    @Override
    public boolean replaceEvent(GameEvent event, Ability source, Game game) {
        Permanent perm = game.getPermanent(source.getSourceId());
        if (perm != null) {
            perm = perm.copy();
            perm.reset(game);
            perm.assignNewId();
            game.addEffect(new EssenceOfTheWildCopyEffect(perm, event.getTargetId()), source);
        }
        return false;
    }
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.