mirror of
https://github.com/magefree/mage.git
synced 2026-01-25 20:59:14 -08:00
Add Guardians of Koilos for Dominaria set
This commit is contained in:
parent
67f32724b4
commit
20f74a7a90
1 changed files with 51 additions and 0 deletions
51
Mage.Sets/src/mage/cards/g/GuardiansOfKoilos.java
Normal file
51
Mage.Sets/src/mage/cards/g/GuardiansOfKoilos.java
Normal 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 owner’s hand.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new ReturnToHandChosenControlledPermanentEffect(filter), true));
|
||||
}
|
||||
|
||||
public GuardiansOfKoilos(final GuardiansOfKoilos card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public GuardiansOfKoilos copy() {
|
||||
return new GuardiansOfKoilos(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue