mirror of
https://github.com/correl/mage.git
synced 2025-01-13 11:01:58 +00:00
[MID] Implemented Village Watch // Village Reavers
This commit is contained in:
parent
dd45977a9b
commit
7f43764917
5 changed files with 116 additions and 5 deletions
|
@ -28,8 +28,8 @@ public final class TavernRuffian extends CardImpl {
|
|||
this.secondSideCardClazz = mage.cards.t.TavernSmasher.class;
|
||||
|
||||
// Daybound
|
||||
this.addAbility(DayboundAbility.getInstance());
|
||||
this.addAbility(new TransformAbility());
|
||||
this.addAbility(DayboundAbility.getInstance());
|
||||
}
|
||||
|
||||
private TavernRuffian(final TavernRuffian card) {
|
||||
|
|
|
@ -2,7 +2,6 @@ package mage.cards.t;
|
|||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.keyword.NightboundAbility;
|
||||
import mage.abilities.keyword.TransformAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
|
@ -19,14 +18,16 @@ public final class TavernSmasher extends CardImpl {
|
|||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "");
|
||||
|
||||
this.subtype.add(SubType.WEREWOLF);
|
||||
this.power = new MageInt(6);
|
||||
this.toughness = new MageInt(5);
|
||||
|
||||
this.color.setRed(true);
|
||||
|
||||
this.nightCard = true;
|
||||
|
||||
this.power = new MageInt(6);
|
||||
this.toughness = new MageInt(5);
|
||||
|
||||
// Nightbound
|
||||
this.addAbility(NightboundAbility.getInstance());
|
||||
this.addAbility(new TransformAbility());
|
||||
}
|
||||
|
||||
private TavernSmasher(final TavernSmasher card) {
|
||||
|
|
62
Mage.Sets/src/mage/cards/v/VillageReavers.java
Normal file
62
Mage.Sets/src/mage/cards/v/VillageReavers.java
Normal file
|
@ -0,0 +1,62 @@
|
|||
package mage.cards.v;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
|
||||
import mage.abilities.keyword.HasteAbility;
|
||||
import mage.abilities.keyword.NightboundAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||
import mage.filter.predicate.Predicates;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class VillageReavers extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter = new FilterControlledCreaturePermanent("Wolves and Werewolves");
|
||||
|
||||
static {
|
||||
filter.add(Predicates.or(
|
||||
SubType.WOLF.getPredicate(),
|
||||
SubType.WEREWOLF.getPredicate()
|
||||
));
|
||||
}
|
||||
|
||||
public VillageReavers(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "");
|
||||
|
||||
this.subtype.add(SubType.WEREWOLF);
|
||||
|
||||
this.color.setRed(true);
|
||||
|
||||
this.nightCard = true;
|
||||
|
||||
this.power = new MageInt(5);
|
||||
this.toughness = new MageInt(4);
|
||||
|
||||
// Wolves and Werewolves you control have haste.
|
||||
this.addAbility(new SimpleStaticAbility(new GainAbilityControlledEffect(
|
||||
HasteAbility.getInstance(), Duration.WhileOnBattlefield, filter
|
||||
)));
|
||||
|
||||
// Nightbound
|
||||
this.addAbility(NightboundAbility.getInstance());
|
||||
}
|
||||
|
||||
private VillageReavers(final VillageReavers card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VillageReavers copy() {
|
||||
return new VillageReavers(this);
|
||||
}
|
||||
}
|
46
Mage.Sets/src/mage/cards/v/VillageWatch.java
Normal file
46
Mage.Sets/src/mage/cards/v/VillageWatch.java
Normal file
|
@ -0,0 +1,46 @@
|
|||
package mage.cards.v;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.keyword.DayboundAbility;
|
||||
import mage.abilities.keyword.HasteAbility;
|
||||
import mage.abilities.keyword.TransformAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class VillageWatch extends CardImpl {
|
||||
|
||||
public VillageWatch(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{R}");
|
||||
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.WEREWOLF);
|
||||
this.power = new MageInt(4);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
this.transformable = true;
|
||||
this.secondSideCardClazz = mage.cards.v.VillageReavers.class;
|
||||
|
||||
// Haste
|
||||
this.addAbility(HasteAbility.getInstance());
|
||||
|
||||
// Daybound
|
||||
this.addAbility(new TransformAbility());
|
||||
this.addAbility(DayboundAbility.getInstance());
|
||||
}
|
||||
|
||||
private VillageWatch(final VillageWatch card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VillageWatch copy() {
|
||||
return new VillageWatch(this);
|
||||
}
|
||||
}
|
|
@ -58,6 +58,8 @@ public final class InnistradMidnightHunt extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Tavern Smasher", 163, Rarity.COMMON, mage.cards.t.TavernSmasher.class));
|
||||
cards.add(new SetCardInfo("Triskaidekaphile", 81, Rarity.RARE, mage.cards.t.Triskaidekaphile.class));
|
||||
cards.add(new SetCardInfo("Unruly Mob", 40, Rarity.COMMON, mage.cards.u.UnrulyMob.class));
|
||||
cards.add(new SetCardInfo("Village Reavers", 165, Rarity.UNCOMMON, mage.cards.v.VillageReavers.class));
|
||||
cards.add(new SetCardInfo("Village Watch", 165, Rarity.UNCOMMON, mage.cards.v.VillageWatch.class));
|
||||
cards.add(new SetCardInfo("Wrenn and Seven", 208, Rarity.MYTHIC, mage.cards.w.WrennAndSeven.class));
|
||||
|
||||
cards.removeIf(setCardInfo -> unfinished.contains(setCardInfo.getName())); // remove when mechanic is fully implemented
|
||||
|
|
Loading…
Reference in a new issue