mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 02:52:02 -08:00
[PIP] Implement Hancock, Ghoulish Mayor
This commit is contained in:
parent
7bf18b6685
commit
7603a6477b
2 changed files with 64 additions and 0 deletions
63
Mage.Sets/src/mage/cards/h/HancockGhoulishMayor.java
Normal file
63
Mage.Sets/src/mage/cards/h/HancockGhoulishMayor.java
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
package mage.cards.h;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.dynamicvalue.common.CountersSourceCount;
|
||||
import mage.abilities.effects.common.continuous.BoostControlledEffect;
|
||||
import mage.abilities.keyword.UndyingAbility;
|
||||
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.common.FilterCreaturePermanent;
|
||||
import mage.filter.predicate.Predicates;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class HancockGhoulishMayor extends CardImpl {
|
||||
|
||||
private static final DynamicValue xValue = new CountersSourceCount(null);
|
||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent();
|
||||
|
||||
static {
|
||||
filter.add(Predicates.or(
|
||||
SubType.ZOMBIE.getPredicate(),
|
||||
SubType.MUTANT.getPredicate()
|
||||
));
|
||||
}
|
||||
|
||||
public HancockGhoulishMayor(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{B}");
|
||||
|
||||
this.supertype.add(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.ZOMBIE);
|
||||
this.subtype.add(SubType.MUTANT);
|
||||
this.subtype.add(SubType.ADVISOR);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(1);
|
||||
|
||||
// Each other creature you control that's a Zombie or Mutant gets +X/+X, where X is the number of counters on Hancock, Ghoulish Mayor.
|
||||
this.addAbility(new SimpleStaticAbility(new BoostControlledEffect(
|
||||
xValue, xValue, Duration.WhileOnBattlefield, filter, true
|
||||
).setText("each other creature you control that's a Zombie or Mutant " +
|
||||
"gets +X/+X, where X is the number of counters on {this}")));
|
||||
|
||||
// Undying
|
||||
this.addAbility(new UndyingAbility());
|
||||
}
|
||||
|
||||
private HancockGhoulishMayor(final HancockGhoulishMayor card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HancockGhoulishMayor copy() {
|
||||
return new HancockGhoulishMayor(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -33,6 +33,7 @@ public final class Fallout extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Forest", 853, Rarity.LAND, mage.cards.basiclands.Forest.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Gary Clone", 16, Rarity.UNCOMMON, mage.cards.g.GaryClone.class));
|
||||
cards.add(new SetCardInfo("Guardian Project", 199, Rarity.RARE, mage.cards.g.GuardianProject.class));
|
||||
cards.add(new SetCardInfo("Hancock, Ghoulish Mayor", 45, Rarity.RARE, mage.cards.h.HancockGhoulishMayor.class));
|
||||
cards.add(new SetCardInfo("Heroic Intervention", 202, Rarity.RARE, mage.cards.h.HeroicIntervention.class));
|
||||
cards.add(new SetCardInfo("Intelligence Bobblehead", 134, Rarity.UNCOMMON, mage.cards.i.IntelligenceBobblehead.class));
|
||||
cards.add(new SetCardInfo("Island", 847, Rarity.LAND, mage.cards.basiclands.Island.class, NON_FULL_USE_VARIOUS));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue