Package mage.abilities.keyword

Examples of mage.abilities.keyword.AffinityForArtifactsAbility


        this.expansionSetCode = "5DN";

        this.color.setBlue(true);

        // Affinity for artifacts
        this.addAbility(new AffinityForArtifactsAbility());
        // Return target artifact to its owner's hand.
        this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
        this.getSpellAbility().addTarget(new TargetArtifactPermanent());
    }
View Full Code Here


        this.power = new MageInt(4);
        this.toughness = new MageInt(5);

        // Affinity for artifacts
        this.addAbility(new AffinityForArtifactsAbility());

        // Artifact creature spells you cast have affinity for artifacts.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new MycosynthGolemEffect()));
       
    }
View Full Code Here

    @Override
    public boolean replaceEvent(GameEvent event, Ability source, Game game) {
        MageObject object = game.getObject(event.getSourceId());
        if (object != null) {
            Card card = (Card) object;
            Ability ability = new AffinityForArtifactsAbility();
            card.addAbility(ability);
            ability.setControllerId(source.getControllerId());
            ability.setSourceId(card.getId());
            game.getState().addAbility(ability, source.getSourceId(), card);
        }
        return false;
    }
View Full Code Here

TOP

Related Classes of mage.abilities.keyword.AffinityForArtifactsAbility

Copyright © 2018 www.massapicom. 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.