foul-magics/Mage.Sets/src/mage/cards/g/GoblinRingleader.java
2021-02-02 17:07:37 -05:00

50 lines
1.5 KiB
Java

package mage.cards.g;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.effects.common.RevealLibraryPutIntoHandEffect;
import mage.abilities.keyword.HasteAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.Zone;
import mage.filter.FilterCard;
/**
*
* @author Plopman
*/
public final class GoblinRingleader extends CardImpl {
private static final FilterCard filter = new FilterCard("Goblin cards");
static {
filter.add(SubType.GOBLIN.getPredicate());
}
public GoblinRingleader(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{R}");
this.subtype.add(SubType.GOBLIN);
this.power = new MageInt(2);
this.toughness = new MageInt(2);
// Haste
this.addAbility(HasteAbility.getInstance());
// When Goblin Ringleader enters the battlefield, reveal the top four cards of your library. Put all Goblin cards revealed this way into your hand and the rest on the bottom of your library in any order.
this.addAbility(new EntersBattlefieldTriggeredAbility(new RevealLibraryPutIntoHandEffect(4, filter, Zone.LIBRARY)));
}
private GoblinRingleader(final GoblinRingleader card) {
super(card);
}
@Override
public GoblinRingleader copy() {
return new GoblinRingleader(this);
}
}