forked from External/mage
[WOE] Implement Royal Treatment
This commit is contained in:
parent
0e666963e8
commit
7394164073
2 changed files with 37 additions and 0 deletions
36
Mage.Sets/src/mage/cards/r/RoyalTreatment.java
Normal file
36
Mage.Sets/src/mage/cards/r/RoyalTreatment.java
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
package mage.cards.r;
|
||||
|
||||
import mage.abilities.effects.common.CreateRoleAttachedTargetEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
|
||||
import mage.abilities.keyword.HexproofAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.RoleType;
|
||||
import mage.target.common.TargetControlledCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class RoyalTreatment extends CardImpl {
|
||||
|
||||
public RoyalTreatment(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{G}");
|
||||
|
||||
// Target creature you control gains hexproof until end of turn. Create a Royal Role token attached to that creature.
|
||||
this.getSpellAbility().addEffect(new GainAbilityTargetEffect(HexproofAbility.getInstance()));
|
||||
this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent());
|
||||
this.getSpellAbility().addEffect(new CreateRoleAttachedTargetEffect(RoleType.ROYAL).setText("create a Royal Role token attached to that creature"));
|
||||
}
|
||||
|
||||
private RoyalTreatment(final RoyalTreatment card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RoyalTreatment copy() {
|
||||
return new RoyalTreatment(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -85,6 +85,7 @@ public final class WildsOfEldraine extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Rootrider Faun", 182, Rarity.COMMON, mage.cards.r.RootriderFaun.class));
|
||||
cards.add(new SetCardInfo("Rowan's Grim Search", 104, Rarity.COMMON, mage.cards.r.RowansGrimSearch.class));
|
||||
cards.add(new SetCardInfo("Rowan, Scion of War", 211, Rarity.MYTHIC, mage.cards.r.RowanScionOfWar.class));
|
||||
cards.add(new SetCardInfo("Royal Treatment", 183, Rarity.UNCOMMON, mage.cards.r.RoyalTreatment.class));
|
||||
cards.add(new SetCardInfo("Ruby, Daring Tracker", 212, Rarity.UNCOMMON, mage.cards.r.RubyDaringTracker.class));
|
||||
cards.add(new SetCardInfo("Scalding Viper", 235, Rarity.RARE, mage.cards.s.ScaldingViper.class));
|
||||
cards.add(new SetCardInfo("Sharae of Numbing Depths", 213, Rarity.UNCOMMON, mage.cards.s.SharaeOfNumbingDepths.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue