Add Guardians of Koilos for Dominaria set

This commit is contained in:
Michael Simons 2018-04-14 00:17:12 -04:00
parent 67f32724b4
commit 20f74a7a90

View file

@ -0,0 +1,51 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package mage.cards.g;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.effects.common.ReturnToHandChosenControlledPermanentEffect;
import mage.cards.CardSetInfo;
import mage.cards.CardImpl;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.filter.common.FilterControlledPermanent;
import mage.filter.predicate.permanent.AnotherPredicate;
import mage.filter.predicate.mageobject.HistoricPredicate;
/**
*
* @author Rystan
*/
public class GuardiansOfKoilos extends CardImpl {
private static final FilterControlledPermanent filter = new FilterControlledPermanent("another historic permanent you control");
static {
filter.add(new AnotherPredicate());
filter.add(new HistoricPredicate());
}
public GuardiansOfKoilos(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{5}");
this.subtype.add(SubType.CONSTRUCT);
this.power = new MageInt(4);
this.toughness = new MageInt(4);
// When Guardians of Koilos enters the battlefield, you may return another target historic permanent you control to its owners hand.
this.addAbility(new EntersBattlefieldTriggeredAbility(new ReturnToHandChosenControlledPermanentEffect(filter), true));
}
public GuardiansOfKoilos(final GuardiansOfKoilos card) {
super(card);
}
@Override
public GuardiansOfKoilos copy() {
return new GuardiansOfKoilos(this);
}
}