mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 11:02:00 -08:00
[DSK] Implement Patched Plaything
This commit is contained in:
parent
66b5da1377
commit
fd8b0d1f99
3 changed files with 50 additions and 0 deletions
48
Mage.Sets/src/mage/cards/p/PatchedPlaything.java
Normal file
48
Mage.Sets/src/mage/cards/p/PatchedPlaything.java
Normal file
|
|
@ -0,0 +1,48 @@
|
||||||
|
package mage.cards.p;
|
||||||
|
|
||||||
|
import mage.MageInt;
|
||||||
|
import mage.abilities.common.EntersBattlefieldAbility;
|
||||||
|
import mage.abilities.condition.common.CastFromHandSourcePermanentCondition;
|
||||||
|
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
||||||
|
import mage.abilities.keyword.DoubleStrikeAbility;
|
||||||
|
import mage.cards.CardImpl;
|
||||||
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.constants.CardType;
|
||||||
|
import mage.constants.SubType;
|
||||||
|
import mage.counters.CounterType;
|
||||||
|
import mage.watchers.common.CastFromHandWatcher;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author TheElk801
|
||||||
|
*/
|
||||||
|
public final class PatchedPlaything extends CardImpl {
|
||||||
|
|
||||||
|
public PatchedPlaything(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{2}{W}");
|
||||||
|
|
||||||
|
this.subtype.add(SubType.TOY);
|
||||||
|
this.power = new MageInt(4);
|
||||||
|
this.toughness = new MageInt(3);
|
||||||
|
|
||||||
|
// Double strike
|
||||||
|
this.addAbility(DoubleStrikeAbility.getInstance());
|
||||||
|
|
||||||
|
// Patched Plaything enters with two -1/-1 counters on it if you cast it from your hand.
|
||||||
|
this.addAbility(new EntersBattlefieldAbility(
|
||||||
|
new AddCountersSourceEffect(CounterType.M1M1.createInstance(2)),
|
||||||
|
CastFromHandSourcePermanentCondition.instance, null,
|
||||||
|
"with two -1/-1 counters on it if you cast it from your hand"
|
||||||
|
), new CastFromHandWatcher());
|
||||||
|
}
|
||||||
|
|
||||||
|
private PatchedPlaything(final PatchedPlaything card) {
|
||||||
|
super(card);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PatchedPlaything copy() {
|
||||||
|
return new PatchedPlaything(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -38,6 +38,7 @@ public final class DuskmournHouseOfHorror extends ExpansionSet {
|
||||||
cards.add(new SetCardInfo("Island", 273, Rarity.LAND, mage.cards.basiclands.Island.class, FULL_ART_BFZ_VARIOUS));
|
cards.add(new SetCardInfo("Island", 273, Rarity.LAND, mage.cards.basiclands.Island.class, FULL_ART_BFZ_VARIOUS));
|
||||||
cards.add(new SetCardInfo("Leyline of Hope", 18, Rarity.RARE, mage.cards.l.LeylineOfHope.class));
|
cards.add(new SetCardInfo("Leyline of Hope", 18, Rarity.RARE, mage.cards.l.LeylineOfHope.class));
|
||||||
cards.add(new SetCardInfo("Mountain", 275, Rarity.LAND, mage.cards.basiclands.Mountain.class, FULL_ART_BFZ_VARIOUS));
|
cards.add(new SetCardInfo("Mountain", 275, Rarity.LAND, mage.cards.basiclands.Mountain.class, FULL_ART_BFZ_VARIOUS));
|
||||||
|
cards.add(new SetCardInfo("Patched Plaything", 24, Rarity.UNCOMMON, mage.cards.p.PatchedPlaything.class));
|
||||||
cards.add(new SetCardInfo("Peer Past the Veil", 226, Rarity.RARE, mage.cards.p.PeerPastTheVeil.class));
|
cards.add(new SetCardInfo("Peer Past the Veil", 226, Rarity.RARE, mage.cards.p.PeerPastTheVeil.class));
|
||||||
cards.add(new SetCardInfo("Plains", 272, Rarity.LAND, mage.cards.basiclands.Plains.class, FULL_ART_BFZ_VARIOUS));
|
cards.add(new SetCardInfo("Plains", 272, Rarity.LAND, mage.cards.basiclands.Plains.class, FULL_ART_BFZ_VARIOUS));
|
||||||
cards.add(new SetCardInfo("Razorkin Needlehead", 153, Rarity.RARE, mage.cards.r.RazorkinNeedlehead.class));
|
cards.add(new SetCardInfo("Razorkin Needlehead", 153, Rarity.RARE, mage.cards.r.RazorkinNeedlehead.class));
|
||||||
|
|
|
||||||
|
|
@ -397,6 +397,7 @@ public enum SubType {
|
||||||
THRULL("Thrull", SubTypeSet.CreatureType),
|
THRULL("Thrull", SubTypeSet.CreatureType),
|
||||||
TIEFLING("Tiefling", SubTypeSet.CreatureType),
|
TIEFLING("Tiefling", SubTypeSet.CreatureType),
|
||||||
TIME_LORD("Time Lord", SubTypeSet.CreatureType),
|
TIME_LORD("Time Lord", SubTypeSet.CreatureType),
|
||||||
|
TOY("Toy", SubTypeSet.CreatureType),
|
||||||
TRANDOSHAN("Trandoshan", SubTypeSet.CreatureType, true), // Star Wars
|
TRANDOSHAN("Trandoshan", SubTypeSet.CreatureType, true), // Star Wars
|
||||||
TREEFOLK("Treefolk", SubTypeSet.CreatureType),
|
TREEFOLK("Treefolk", SubTypeSet.CreatureType),
|
||||||
TRILOBITE("Trilobite", SubTypeSet.CreatureType),
|
TRILOBITE("Trilobite", SubTypeSet.CreatureType),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue