mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
[MID] Implemented Component Collector
This commit is contained in:
parent
582f160a69
commit
b0ad358e81
2 changed files with 46 additions and 0 deletions
45
Mage.Sets/src/mage/cards/c/ComponentCollector.java
Normal file
45
Mage.Sets/src/mage/cards/c/ComponentCollector.java
Normal file
|
@ -0,0 +1,45 @@
|
|||
package mage.cards.c;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.BecomeDayAsEntersAbility;
|
||||
import mage.abilities.common.BecomesDayOrNightTriggeredAbility;
|
||||
import mage.abilities.effects.common.MayTapOrUntapTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.target.common.TargetNonlandPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class ComponentCollector extends CardImpl {
|
||||
|
||||
public ComponentCollector(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{U}");
|
||||
|
||||
this.subtype.add(SubType.HOMUNCULUS);
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(4);
|
||||
|
||||
// If it's neither day nor night, it becomes day as Component Collector enters the battlefield.
|
||||
this.addAbility(new BecomeDayAsEntersAbility());
|
||||
|
||||
// Whenever day becomes night or night becomes day, you may tap or untap target nonland permanent.
|
||||
Ability ability = new BecomesDayOrNightTriggeredAbility(new MayTapOrUntapTargetEffect());
|
||||
ability.addTarget(new TargetNonlandPermanent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private ComponentCollector(final ComponentCollector card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ComponentCollector copy() {
|
||||
return new ComponentCollector(this);
|
||||
}
|
||||
}
|
|
@ -68,6 +68,7 @@ public final class InnistradMidnightHunt extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Chaplain of Alms", 13, Rarity.UNCOMMON, mage.cards.c.ChaplainOfAlms.class));
|
||||
cards.add(new SetCardInfo("Clarion Cathars", 14, Rarity.COMMON, mage.cards.c.ClarionCathars.class));
|
||||
cards.add(new SetCardInfo("Clear Shot", 176, Rarity.UNCOMMON, mage.cards.c.ClearShot.class));
|
||||
cards.add(new SetCardInfo("Component Collector", 43, Rarity.COMMON, mage.cards.c.ComponentCollector.class));
|
||||
cards.add(new SetCardInfo("Consider", 44, Rarity.COMMON, mage.cards.c.Consider.class));
|
||||
cards.add(new SetCardInfo("Contortionist Troupe", 178, Rarity.UNCOMMON, mage.cards.c.ContortionistTroupe.class));
|
||||
cards.add(new SetCardInfo("Corpse Cobble", 214, Rarity.UNCOMMON, mage.cards.c.CorpseCobble.class));
|
||||
|
|
Loading…
Reference in a new issue