forked from External/mage
[MOM] Implement Zhalfirin Lancer
This commit is contained in:
parent
75ad2efc08
commit
fd0f72b44d
2 changed files with 59 additions and 0 deletions
58
Mage.Sets/src/mage/cards/z/ZhalfirinLancer.java
Normal file
58
Mage.Sets/src/mage/cards/z/ZhalfirinLancer.java
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
package mage.cards.z;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldControlledTriggeredAbility;
|
||||
import mage.abilities.effects.common.continuous.BoostSourceEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilitySourceEffect;
|
||||
import mage.abilities.keyword.VigilanceAbility;
|
||||
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.mageobject.AnotherPredicate;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class ZhalfirinLancer extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter = new FilterControlledCreaturePermanent(SubType.KNIGHT, "another Knight");
|
||||
|
||||
static {
|
||||
filter.add(AnotherPredicate.instance);
|
||||
}
|
||||
|
||||
public ZhalfirinLancer(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{W}");
|
||||
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.KNIGHT);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
// Whenever another Knight enters the battlefield under your control, Zhalfirin Lancer gets +1/+1 and gains vigilance until end of turn.
|
||||
Ability ability = new EntersBattlefieldControlledTriggeredAbility(
|
||||
new BoostSourceEffect(1, 1, Duration.EndOfTurn)
|
||||
.setText("{this} gets +1/+1"), filter
|
||||
);
|
||||
ability.addEffect(new GainAbilitySourceEffect(
|
||||
VigilanceAbility.getInstance(), Duration.EndOfTurn
|
||||
).setText("and gains vigilance until end of turn"));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private ZhalfirinLancer(final ZhalfirinLancer card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ZhalfirinLancer copy() {
|
||||
return new ZhalfirinLancer(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -87,6 +87,7 @@ public final class MarchOfTheMachine extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Wrenn and Realmbreaker", 217, Rarity.MYTHIC, mage.cards.w.WrennAndRealmbreaker.class));
|
||||
cards.add(new SetCardInfo("Yargle and Multani", 256, Rarity.RARE, mage.cards.y.YargleAndMultani.class));
|
||||
cards.add(new SetCardInfo("Zephyr Winder", 328, Rarity.COMMON, mage.cards.z.ZephyrWinder.class));
|
||||
cards.add(new SetCardInfo("Zhalfirin Lancer", 45, Rarity.UNCOMMON, mage.cards.z.ZhalfirinLancer.class));
|
||||
}
|
||||
|
||||
// @Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue