mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 20:11:59 -08:00
[ACR] Implement Settlement Blacksmith
This commit is contained in:
parent
05ea6f5b99
commit
dbd8dbda04
2 changed files with 51 additions and 0 deletions
50
Mage.Sets/src/mage/cards/s/SettlementBlacksmith.java
Normal file
50
Mage.Sets/src/mage/cards/s/SettlementBlacksmith.java
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
package mage.cards.s;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.condition.Condition;
|
||||
import mage.abilities.condition.common.PermanentsOnTheBattlefieldCondition;
|
||||
import mage.abilities.decorator.ConditionalInterveningIfTriggeredAbility;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.hint.ConditionHint;
|
||||
import mage.abilities.hint.Hint;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class SettlementBlacksmith extends CardImpl {
|
||||
|
||||
private static final Condition condition = new PermanentsOnTheBattlefieldCondition(new FilterControlledPermanent(SubType.EQUIPMENT));
|
||||
private static final Hint hint = new ConditionHint(condition, "You control an Equipment");
|
||||
|
||||
public SettlementBlacksmith(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{W}");
|
||||
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.ARTIFICER);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
// When Settlement Blacksmith enters the battlefield, if you control an Equipment, draw a card.
|
||||
this.addAbility(new ConditionalInterveningIfTriggeredAbility(
|
||||
new EntersBattlefieldTriggeredAbility(new DrawCardSourceControllerEffect(1)),
|
||||
condition, "When {this} enters the battlefield, if you control an Equipment, draw a card."
|
||||
).addHint(hint));
|
||||
}
|
||||
|
||||
private SettlementBlacksmith(final SettlementBlacksmith card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SettlementBlacksmith copy() {
|
||||
return new SettlementBlacksmith(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -72,6 +72,7 @@ public final class AssassinsCreed extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Rest in Peace", 83, Rarity.RARE, mage.cards.r.RestInPeace.class));
|
||||
cards.add(new SetCardInfo("Restart Sequence", 30, Rarity.UNCOMMON, mage.cards.r.RestartSequence.class));
|
||||
cards.add(new SetCardInfo("Royal Assassin", 93, Rarity.RARE, mage.cards.r.RoyalAssassin.class));
|
||||
cards.add(new SetCardInfo("Settlement Blacksmith", 280, Rarity.UNCOMMON, mage.cards.s.SettlementBlacksmith.class));
|
||||
cards.add(new SetCardInfo("Silent Clearing", 115, Rarity.RARE, mage.cards.s.SilentClearing.class));
|
||||
cards.add(new SetCardInfo("Stone Quarry", 300, Rarity.UNCOMMON, mage.cards.s.StoneQuarry.class));
|
||||
cards.add(new SetCardInfo("Submerged Boneyard", 301, Rarity.UNCOMMON, mage.cards.s.SubmergedBoneyard.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue