mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
[STX] Implemented Poet's Quill
This commit is contained in:
parent
3bf7eaa1c3
commit
e313c3e7fd
2 changed files with 54 additions and 0 deletions
53
Mage.Sets/src/mage/cards/p/PoetsQuill.java
Normal file
53
Mage.Sets/src/mage/cards/p/PoetsQuill.java
Normal file
|
@ -0,0 +1,53 @@
|
|||
package mage.cards.p;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.common.LearnEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostEquippedEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityAttachedEffect;
|
||||
import mage.abilities.keyword.EquipAbility;
|
||||
import mage.abilities.keyword.LifelinkAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.AttachmentType;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class PoetsQuill extends CardImpl {
|
||||
|
||||
public PoetsQuill(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{1}{B}");
|
||||
|
||||
this.subtype.add(SubType.EQUIPMENT);
|
||||
|
||||
// When Poet's Quill enters the battlefield, learn.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new LearnEffect()));
|
||||
|
||||
// Equipped creature gets +1/+1 and has lifelink.
|
||||
Ability ability = new SimpleStaticAbility(new BoostEquippedEffect(1, 1));
|
||||
ability.addEffect(new GainAbilityAttachedEffect(
|
||||
LifelinkAbility.getInstance(), AttachmentType.EQUIPMENT
|
||||
).setText("and has lifelink"));
|
||||
this.addAbility(ability);
|
||||
|
||||
// Equip {1}{B}
|
||||
this.addAbility(new EquipAbility(Outcome.AddAbility, new ManaCostsImpl<>("{1}{B}")));
|
||||
}
|
||||
|
||||
private PoetsQuill(final PoetsQuill card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PoetsQuill copy() {
|
||||
return new PoetsQuill(this);
|
||||
}
|
||||
}
|
|
@ -124,6 +124,7 @@ public final class StrixhavenSchoolOfMages extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Pillardrop Rescuer", 23, Rarity.COMMON, mage.cards.p.PillardropRescuer.class));
|
||||
cards.add(new SetCardInfo("Plains", 366, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Plargg, Dean of Chaos", 155, Rarity.RARE, mage.cards.p.PlarggDeanOfChaos.class));
|
||||
cards.add(new SetCardInfo("Poet's Quill", 82, Rarity.RARE, mage.cards.p.PoetsQuill.class));
|
||||
cards.add(new SetCardInfo("Pop Quiz", 49, Rarity.COMMON, mage.cards.p.PopQuiz.class));
|
||||
cards.add(new SetCardInfo("Practical Research", 212, Rarity.UNCOMMON, mage.cards.p.PracticalResearch.class));
|
||||
cards.add(new SetCardInfo("Prismari Apprentice", 213, Rarity.UNCOMMON, mage.cards.p.PrismariApprentice.class));
|
||||
|
|
Loading…
Reference in a new issue