mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
[KHM] Implemented Ravenform
This commit is contained in:
parent
bad00742b2
commit
75f0a43919
2 changed files with 75 additions and 0 deletions
74
Mage.Sets/src/mage/cards/r/Ravenform.java
Normal file
74
Mage.Sets/src/mage/cards/r/Ravenform.java
Normal file
|
@ -0,0 +1,74 @@
|
|||
package mage.cards.r;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.keyword.ForetellAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.game.permanent.token.OwlToken;
|
||||
import mage.players.Player;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class Ravenform extends CardImpl {
|
||||
|
||||
public Ravenform(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{U}");
|
||||
|
||||
// Exile target artifact or creature. Its controller creates a 1/1 blue Bird creature token with flying.
|
||||
this.getSpellAbility().addEffect(new RavenformEffect());
|
||||
this.getSpellAbility().addTarget(new TargetPermanent(StaticFilters.FILTER_PERMANENT_ARTIFACT_OR_CREATURE));
|
||||
|
||||
// Foretell {U}
|
||||
this.addAbility(new ForetellAbility(this, "{U}"));
|
||||
}
|
||||
|
||||
private Ravenform(final Ravenform card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Ravenform copy() {
|
||||
return new Ravenform(this);
|
||||
}
|
||||
}
|
||||
|
||||
class RavenformEffect extends OneShotEffect {
|
||||
|
||||
RavenformEffect() {
|
||||
super(Outcome.PutCreatureInPlay);
|
||||
staticText = "Exile target artifact or creature. " +
|
||||
"Its controller creates a 1/1 blue Bird creature token with flying.";
|
||||
}
|
||||
|
||||
private RavenformEffect(final RavenformEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RavenformEffect copy() {
|
||||
return new RavenformEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Permanent permanent = game.getPermanent(source.getFirstTarget());
|
||||
if (permanent == null) {
|
||||
return false;
|
||||
}
|
||||
Player player = game.getPlayer(permanent.getControllerId());
|
||||
player.moveCards(permanent, Zone.EXILED, source, game);
|
||||
new OwlToken().putOntoBattlefield(1, game, source, player.getId());
|
||||
return true;
|
||||
}
|
||||
}
|
|
@ -86,6 +86,7 @@ public final class Kaldheim extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Masked Vandal", 184, Rarity.COMMON, mage.cards.m.MaskedVandal.class));
|
||||
cards.add(new SetCardInfo("Pyre of Heroes", 241, Rarity.RARE, mage.cards.p.PyreOfHeroes.class));
|
||||
cards.add(new SetCardInfo("Rampage of the Valkyries", 393, Rarity.UNCOMMON, mage.cards.r.RampageOfTheValkyries.class));
|
||||
cards.add(new SetCardInfo("Ravenform", 72, Rarity.COMMON, mage.cards.r.Ravenform.class));
|
||||
cards.add(new SetCardInfo("Realmwalker", 188, Rarity.RARE, mage.cards.r.Realmwalker.class));
|
||||
cards.add(new SetCardInfo("Renegade Reaper", 386, Rarity.UNCOMMON, mage.cards.r.RenegadeReaper.class));
|
||||
cards.add(new SetCardInfo("Rimewood Falls", 266, Rarity.COMMON, mage.cards.r.RimewoodFalls.class));
|
||||
|
|
Loading…
Reference in a new issue