mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
[DRC] Implement Rhet-Tomb Mystic (#13304)
This commit is contained in:
parent
7caa44a5c7
commit
c9a7a337bd
2 changed files with 79 additions and 0 deletions
78
Mage.Sets/src/mage/cards/r/RhetTombMystic.java
Normal file
78
Mage.Sets/src/mage/cards/r/RhetTombMystic.java
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
package mage.cards.r;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.ContinuousEffect;
|
||||
import mage.abilities.effects.ContinuousEffectImpl;
|
||||
import mage.abilities.keyword.CyclingAbility;
|
||||
import mage.constants.*;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author sobiech
|
||||
*/
|
||||
public final class RhetTombMystic extends CardImpl {
|
||||
|
||||
public RhetTombMystic(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{U}");
|
||||
|
||||
this.subtype.add(SubType.ZOMBIE);
|
||||
this.subtype.add(SubType.BIRD);
|
||||
this.subtype.add(SubType.WIZARD);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(1);
|
||||
|
||||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// Each creature card in your hand has cycling {1}{U}.
|
||||
this.addAbility(new SimpleStaticAbility(new RhetTombMysticEffect()));
|
||||
}
|
||||
|
||||
private RhetTombMystic(final RhetTombMystic card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RhetTombMystic copy() {
|
||||
return new RhetTombMystic(this);
|
||||
}
|
||||
}
|
||||
|
||||
class RhetTombMysticEffect extends ContinuousEffectImpl {
|
||||
|
||||
RhetTombMysticEffect() {
|
||||
super(Duration.WhileOnBattlefield, Layer.AbilityAddingRemovingEffects_6, SubLayer.NA, Outcome.AddAbility);
|
||||
this.staticText = "Each creature card in your hand has cycling {1}{B}";
|
||||
}
|
||||
|
||||
private RhetTombMysticEffect(final RhetTombMysticEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
final Player controller = game.getPlayer(source.getControllerId());
|
||||
if (controller == null)
|
||||
return false;
|
||||
|
||||
controller.getHand().getCards(StaticFilters.FILTER_CARD_CREATURE, game)
|
||||
.forEach(card -> game.getState().addOtherAbility(card, new CyclingAbility(new ManaCostsImpl<>("{1}{B}"))));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ContinuousEffect copy() {
|
||||
return new RhetTombMysticEffect(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -124,6 +124,7 @@ public final class AetherdriftCommander extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Reality Shift", 39, Rarity.UNCOMMON, mage.cards.r.RealityShift.class));
|
||||
cards.add(new SetCardInfo("Reckless Fireweaver", 106, Rarity.COMMON, mage.cards.r.RecklessFireweaver.class));
|
||||
cards.add(new SetCardInfo("Retrofitter Foundry", 136, Rarity.RARE, mage.cards.r.RetrofitterFoundry.class));
|
||||
cards.add(new SetCardInfo("Rhet-Tomb Mystic", 10, Rarity.RARE, mage.cards.r.RhetTombMystic.class));
|
||||
cards.add(new SetCardInfo("Rogue Refiner", 118, Rarity.UNCOMMON, mage.cards.r.RogueRefiner.class));
|
||||
cards.add(new SetCardInfo("Rootbound Crag", 168, Rarity.RARE, mage.cards.r.RootboundCrag.class));
|
||||
cards.add(new SetCardInfo("Rot Hulk", 98, Rarity.MYTHIC, mage.cards.r.RotHulk.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue