mirror of
https://github.com/correl/mage.git
synced 2025-04-08 17:00:07 -09:00
[AFR] Implemented Prosperous Innkeeper
This commit is contained in:
parent
071f03c491
commit
35e7f649d4
3 changed files with 49 additions and 0 deletions
Mage.Sets/src/mage
Mage/src/main/java/mage/constants
47
Mage.Sets/src/mage/cards/p/ProsperousInnkeeper.java
Normal file
47
Mage.Sets/src/mage/cards/p/ProsperousInnkeeper.java
Normal file
|
@ -0,0 +1,47 @@
|
|||
package mage.cards.p;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.EntersBattlefieldControlledTriggeredAbility;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.effects.common.GainLifeEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.game.permanent.token.TreasureToken;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class ProsperousInnkeeper extends CardImpl {
|
||||
|
||||
public ProsperousInnkeeper(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{G}");
|
||||
|
||||
this.subtype.add(SubType.HALFLING);
|
||||
this.subtype.add(SubType.CITIZEN);
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(1);
|
||||
|
||||
// When Prosperous Innkeeper enters the battlefield, create a Treasure token.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new TreasureToken())));
|
||||
|
||||
// Whenever another creature enters the battlefield under your control, you gain 1 life.
|
||||
this.addAbility(new EntersBattlefieldControlledTriggeredAbility(
|
||||
new GainLifeEffect(1), StaticFilters.FILTER_CONTROLLED_ANOTHER_CREATURE
|
||||
));
|
||||
}
|
||||
|
||||
private ProsperousInnkeeper(final ProsperousInnkeeper card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProsperousInnkeeper copy() {
|
||||
return new ProsperousInnkeeper(this);
|
||||
}
|
||||
}
|
|
@ -31,6 +31,7 @@ public final class AdventuresInTheForgottenRealms extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Plains", 265, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Portable Hole", 33, Rarity.COMMON, mage.cards.p.PortableHole.class));
|
||||
cards.add(new SetCardInfo("Power Word Kill", 114, Rarity.UNCOMMON, mage.cards.p.PowerWordKill.class));
|
||||
cards.add(new SetCardInfo("Prosperous Innkeeper", 200, Rarity.UNCOMMON, mage.cards.p.ProsperousInnkeeper.class));
|
||||
cards.add(new SetCardInfo("Swamp", 273, Rarity.LAND, mage.cards.basiclands.Swamp.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Vorpal Sword", 124, Rarity.RARE, mage.cards.v.VorpalSword.class));
|
||||
}
|
||||
|
|
|
@ -169,6 +169,7 @@ public enum SubType {
|
|||
GUNGAN("Gungan", SubTypeSet.CreatureType, true), // Star Wars
|
||||
// H
|
||||
HAG("Hag", SubTypeSet.CreatureType),
|
||||
HALFLING("Halfling", SubTypeSet.CreatureType),
|
||||
HARPY("Harpy", SubTypeSet.CreatureType),
|
||||
HELLION("Hellion", SubTypeSet.CreatureType),
|
||||
HIPPO("Hippo", SubTypeSet.CreatureType),
|
||||
|
|
Loading…
Add table
Reference in a new issue