mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -08:00
[CLU] Implement Senator Peacock
This commit is contained in:
parent
7c50ab01f5
commit
513e47deca
2 changed files with 65 additions and 0 deletions
64
Mage.Sets/src/mage/cards/s/SenatorPeacock.java
Normal file
64
Mage.Sets/src/mage/cards/s/SenatorPeacock.java
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
package mage.cards.s;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SacrificePermanentTriggeredAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.common.combat.CantBeBlockedTargetEffect;
|
||||
import mage.abilities.effects.common.continuous.AddCardSubtypeAllEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityAllEffect;
|
||||
import mage.abilities.token.ClueAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.SuperType;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class SenatorPeacock extends CardImpl {
|
||||
|
||||
private static final FilterControlledPermanent filter = new FilterControlledPermanent(SubType.CLUE, "a Clue");
|
||||
|
||||
public SenatorPeacock(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{U}{U}");
|
||||
|
||||
this.supertype.add(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.ADVISOR);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(4);
|
||||
|
||||
// Artifacts you control are Clues in addition to their other types and have "{2}, Sacrifice this artifact: Draw a card."
|
||||
Ability ability = new SimpleStaticAbility(new AddCardSubtypeAllEffect(
|
||||
StaticFilters.FILTER_CONTROLLED_PERMANENT_ARTIFACTS, SubType.CLUE, null
|
||||
));
|
||||
ability.addEffect(new GainAbilityAllEffect(
|
||||
new ClueAbility(false), Duration.WhileOnBattlefield,
|
||||
StaticFilters.FILTER_CONTROLLED_PERMANENT_ARTIFACT,
|
||||
"and have \"{2}, Sacrifice this artifact: Draw a card.\""
|
||||
));
|
||||
this.addAbility(ability);
|
||||
|
||||
// Whenever you sacrifice a Clue, target creature can't be blocked this turn.
|
||||
ability = new SacrificePermanentTriggeredAbility(new CantBeBlockedTargetEffect(), filter);
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private SenatorPeacock(final SenatorPeacock card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SenatorPeacock copy() {
|
||||
return new SenatorPeacock(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -23,6 +23,7 @@ public final class RavnicaClueEdition extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Dining Room", 15, Rarity.UNCOMMON, mage.cards.d.DiningRoom.class));
|
||||
cards.add(new SetCardInfo("Hallowed Fountain", 277, Rarity.RARE, mage.cards.h.HallowedFountain.class));
|
||||
cards.add(new SetCardInfo("Lead Pipe", 9, Rarity.UNCOMMON, mage.cards.l.LeadPipe.class));
|
||||
cards.add(new SetCardInfo("Senator Peacock", 2, Rarity.RARE, mage.cards.s.SenatorPeacock.class));
|
||||
cards.add(new SetCardInfo("Steam Vents", 280, Rarity.RARE, mage.cards.s.SteamVents.class));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue