mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
Implemented Goblin Trashmaster
This commit is contained in:
parent
1590c016bd
commit
e60b207c0f
2 changed files with 70 additions and 0 deletions
69
Mage.Sets/src/mage/cards/g/GoblinTrashmaster.java
Normal file
69
Mage.Sets/src/mage/cards/g/GoblinTrashmaster.java
Normal file
|
@ -0,0 +1,69 @@
|
|||
package mage.cards.g;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.costs.common.SacrificeTargetCost;
|
||||
import mage.abilities.effects.common.DestroyTargetEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostControlledEffect;
|
||||
import mage.constants.SubType;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.target.common.TargetArtifactPermanent;
|
||||
import mage.target.common.TargetControlledPermanent;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class GoblinTrashmaster extends CardImpl {
|
||||
|
||||
private static final FilterCreaturePermanent filter
|
||||
= new FilterCreaturePermanent(SubType.GOBLIN, "Goblins you control");
|
||||
private static final FilterControlledCreaturePermanent filter2
|
||||
= new FilterControlledCreaturePermanent(SubType.GOBLIN, "a Goblin");
|
||||
|
||||
public GoblinTrashmaster(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{R}{R}");
|
||||
|
||||
this.subtype.add(SubType.GOBLIN);
|
||||
this.subtype.add(SubType.WARRIOR);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
// Other Goblins you control get +1/+1.
|
||||
this.addAbility(new SimpleStaticAbility(
|
||||
Zone.BATTLEFIELD,
|
||||
new BoostControlledEffect(
|
||||
1, 1, Duration.WhileOnBattlefield,
|
||||
filter, true
|
||||
)
|
||||
));
|
||||
|
||||
// Sacrifice a Goblin: Destroy target artifact.
|
||||
Ability ability = new SimpleActivatedAbility(
|
||||
new DestroyTargetEffect(),
|
||||
new SacrificeTargetCost(
|
||||
new TargetControlledPermanent(filter2)
|
||||
)
|
||||
);
|
||||
ability.addTarget(new TargetArtifactPermanent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
public GoblinTrashmaster(final GoblinTrashmaster card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public GoblinTrashmaster copy() {
|
||||
return new GoblinTrashmaster(this);
|
||||
}
|
||||
}
|
|
@ -97,6 +97,7 @@ public final class CoreSet2019 extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Gigantosaurus", 185, Rarity.RARE, mage.cards.g.Gigantosaurus.class));
|
||||
cards.add(new SetCardInfo("Goblin Instigator", 142, Rarity.COMMON, mage.cards.g.GoblinInstigator.class));
|
||||
cards.add(new SetCardInfo("Goblin Motivator", 143, Rarity.COMMON, mage.cards.g.GoblinMotivator.class));
|
||||
cards.add(new SetCardInfo("Goblin Trashmaster", 144, Rarity.RARE, mage.cards.g.GoblinTrashmaster.class));
|
||||
cards.add(new SetCardInfo("Goreclaw, Terror of Qal Sisma", 186, Rarity.RARE, mage.cards.g.GoreclawTerrorOfQalSisma.class));
|
||||
cards.add(new SetCardInfo("Grasping Scoundrel", 312, Rarity.COMMON, mage.cards.g.GraspingScoundrel.class));
|
||||
cards.add(new SetCardInfo("Gravedigger", 98, Rarity.UNCOMMON, mage.cards.g.Gravedigger.class));
|
||||
|
|
Loading…
Reference in a new issue