mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
[RNA] implemented Warrant // Warden
This commit is contained in:
parent
f6d3298bb3
commit
925954fe8b
2 changed files with 48 additions and 0 deletions
47
Mage.Sets/src/mage/cards/w/WarrantWarden.java
Normal file
47
Mage.Sets/src/mage/cards/w/WarrantWarden.java
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
package mage.cards.w;
|
||||||
|
|
||||||
|
import mage.abilities.effects.common.CreateTokenEffect;
|
||||||
|
import mage.abilities.effects.common.PutOnLibraryTargetEffect;
|
||||||
|
import mage.abilities.keyword.FlyingAbility;
|
||||||
|
import mage.abilities.keyword.VigilanceAbility;
|
||||||
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.cards.SplitCard;
|
||||||
|
import mage.constants.CardType;
|
||||||
|
import mage.constants.SpellAbilityType;
|
||||||
|
import mage.game.permanent.token.custom.CreatureToken;
|
||||||
|
import mage.target.common.TargetAttackingOrBlockingCreature;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author JayDi85
|
||||||
|
*/
|
||||||
|
public final class WarrantWarden extends SplitCard {
|
||||||
|
|
||||||
|
public WarrantWarden(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, new CardType[]{CardType.SORCERY}, "{W/U}{W/U}", "{3}{W}{U}", SpellAbilityType.SPLIT);
|
||||||
|
|
||||||
|
// Warrant
|
||||||
|
// Put target attacking or blocking creature on top of its owner’s library.
|
||||||
|
this.getLeftHalfCard().getSpellAbility().addEffect(new PutOnLibraryTargetEffect(true));
|
||||||
|
this.getLeftHalfCard().getSpellAbility().addTarget(new TargetAttackingOrBlockingCreature());
|
||||||
|
|
||||||
|
// Warden
|
||||||
|
// Create a 4/4 white and blue Sphinx creature token with flying and vigilance.
|
||||||
|
this.getRightHalfCard().getSpellAbility().addEffect(new CreateTokenEffect(
|
||||||
|
new CreatureToken(4, 4, "4/4 white and blue Sphinx creature token with flying and vigilance")
|
||||||
|
.withColor("WU")
|
||||||
|
.withAbility(FlyingAbility.getInstance())
|
||||||
|
.withAbility(VigilanceAbility.getInstance())
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
|
private WarrantWarden(final WarrantWarden card) {
|
||||||
|
super(card);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public WarrantWarden copy() {
|
||||||
|
return new WarrantWarden(this);
|
||||||
|
}
|
||||||
|
}
|
|
@ -138,6 +138,7 @@ public final class RavnicaAllegiance extends ExpansionSet {
|
||||||
cards.add(new SetCardInfo("Tithe Taker", 27, Rarity.RARE, mage.cards.t.TitheTaker.class));
|
cards.add(new SetCardInfo("Tithe Taker", 27, Rarity.RARE, mage.cards.t.TitheTaker.class));
|
||||||
cards.add(new SetCardInfo("Trollbred Guardian", 148, Rarity.UNCOMMON, mage.cards.t.TrollbredGuardian.class));
|
cards.add(new SetCardInfo("Trollbred Guardian", 148, Rarity.UNCOMMON, mage.cards.t.TrollbredGuardian.class));
|
||||||
cards.add(new SetCardInfo("Verity Circle", 58, Rarity.RARE, mage.cards.v.VerityCircle.class));
|
cards.add(new SetCardInfo("Verity Circle", 58, Rarity.RARE, mage.cards.v.VerityCircle.class));
|
||||||
|
cards.add(new SetCardInfo("Warrant // Warden", 230, Rarity.RARE, mage.cards.w.WarrantWarden.class));
|
||||||
cards.add(new SetCardInfo("Wilderness Reclamation", 149, Rarity.UNCOMMON, mage.cards.w.WildernessReclamation.class));
|
cards.add(new SetCardInfo("Wilderness Reclamation", 149, Rarity.UNCOMMON, mage.cards.w.WildernessReclamation.class));
|
||||||
cards.add(new SetCardInfo("Zegana, Utopian Speaker", 214, Rarity.RARE, mage.cards.z.ZeganaUtopianSpeaker.class));
|
cards.add(new SetCardInfo("Zegana, Utopian Speaker", 214, Rarity.RARE, mage.cards.z.ZeganaUtopianSpeaker.class));
|
||||||
cards.add(new SetCardInfo("Zhur-Taa Goblin", 215, Rarity.UNCOMMON, mage.cards.z.ZhurTaaGoblin.class));
|
cards.add(new SetCardInfo("Zhur-Taa Goblin", 215, Rarity.UNCOMMON, mage.cards.z.ZhurTaaGoblin.class));
|
||||||
|
|
Loading…
Reference in a new issue