mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
[FDN] Implement Gutless Plunderer
This commit is contained in:
parent
3dac900547
commit
c523e8c48b
2 changed files with 61 additions and 0 deletions
60
Mage.Sets/src/mage/cards/g/GutlessPlunderer.java
Normal file
60
Mage.Sets/src/mage/cards/g/GutlessPlunderer.java
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
package mage.cards.g;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.condition.common.RaidCondition;
|
||||
import mage.abilities.decorator.ConditionalInterveningIfTriggeredAbility;
|
||||
import mage.abilities.effects.common.LookLibraryAndPickControllerEffect;
|
||||
import mage.abilities.hint.common.RaidHint;
|
||||
import mage.abilities.keyword.DeathtouchAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.AbilityWord;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.PutCards;
|
||||
import mage.constants.SubType;
|
||||
import mage.watchers.common.PlayerAttackedWatcher;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author ciaccona007
|
||||
*/
|
||||
public final class GutlessPlunderer extends CardImpl {
|
||||
|
||||
public GutlessPlunderer(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{B}");
|
||||
|
||||
this.subtype.add(SubType.SKELETON);
|
||||
this.subtype.add(SubType.PIRATE);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
// Deathtouch
|
||||
this.addAbility(DeathtouchAbility.getInstance());
|
||||
|
||||
// Raid -- When this creature enters, if you attacked this turn, look at the top three cards of your library. You may put one of those cards back on top of your library. Put the rest into your graveyard.
|
||||
Ability ability = new ConditionalInterveningIfTriggeredAbility(new EntersBattlefieldTriggeredAbility(
|
||||
new LookLibraryAndPickControllerEffect(
|
||||
3, 1, PutCards.TOP_ANY, PutCards.GRAVEYARD, true
|
||||
)
|
||||
), RaidCondition.instance, "When this creature enters, if you attacked this turn, "
|
||||
+ "look at the top three cards of your library. You may "
|
||||
+ "put one of those cards back on top of your library. Put the rest into your graveyard."
|
||||
);
|
||||
ability.setAbilityWord(AbilityWord.RAID);
|
||||
ability.addHint(RaidHint.instance);
|
||||
this.addAbility(ability, new PlayerAttackedWatcher());
|
||||
}
|
||||
|
||||
private GutlessPlunderer(final GutlessPlunderer card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public GutlessPlunderer copy() {
|
||||
return new GutlessPlunderer(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -240,6 +240,7 @@ public final class Foundations extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Grow from the Ashes", 225, Rarity.COMMON, mage.cards.g.GrowFromTheAshes.class));
|
||||
cards.add(new SetCardInfo("Gruul Guildgate", 690, Rarity.COMMON, mage.cards.g.GruulGuildgate.class));
|
||||
cards.add(new SetCardInfo("Guarded Heir", 14, Rarity.UNCOMMON, mage.cards.g.GuardedHeir.class));
|
||||
cards.add(new SetCardInfo("Gutless Plunderer", 60, Rarity.COMMON, mage.cards.g.GutlessPlunderer.class));
|
||||
cards.add(new SetCardInfo("Guttersnipe", 716, Rarity.UNCOMMON, mage.cards.g.Guttersnipe.class));
|
||||
cards.add(new SetCardInfo("Halana and Alena, Partners", 659, Rarity.RARE, mage.cards.h.HalanaAndAlenaPartners.class));
|
||||
cards.add(new SetCardInfo("Harbinger of the Tides", 593, Rarity.RARE, mage.cards.h.HarbingerOfTheTides.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue