Search in sources :

Example 1 with PutCardIntoGraveFromAnywhereAllTriggeredAbility

use of mage.abilities.common.PutCardIntoGraveFromAnywhereAllTriggeredAbility in project mage by magefree.

the class LazavDimirMastermindCopyApplier method apply.

@Override
public boolean apply(Game game, MageObject blueprint, Ability source, UUID copyToObjectId) {
    Ability ability = new PutCardIntoGraveFromAnywhereAllTriggeredAbility(new LazavDimirMastermindEffect(), true, new FilterCreatureCard("a creature card"), TargetController.OPPONENT, SetTargetPointer.CARD);
    blueprint.getAbilities().add(ability);
    blueprint.setName("Lazav, Dimir Mastermind");
    blueprint.addSuperType(SuperType.LEGENDARY);
    blueprint.getAbilities().add(HexproofAbility.getInstance());
    return true;
}
Also used : PutCardIntoGraveFromAnywhereAllTriggeredAbility(mage.abilities.common.PutCardIntoGraveFromAnywhereAllTriggeredAbility) HexproofAbility(mage.abilities.keyword.HexproofAbility) Ability(mage.abilities.Ability) FilterCreatureCard(mage.filter.common.FilterCreatureCard) PutCardIntoGraveFromAnywhereAllTriggeredAbility(mage.abilities.common.PutCardIntoGraveFromAnywhereAllTriggeredAbility)

Aggregations

Ability (mage.abilities.Ability)1 PutCardIntoGraveFromAnywhereAllTriggeredAbility (mage.abilities.common.PutCardIntoGraveFromAnywhereAllTriggeredAbility)1 HexproofAbility (mage.abilities.keyword.HexproofAbility)1 FilterCreatureCard (mage.filter.common.FilterCreatureCard)1