mirror of
https://github.com/correl/mage.git
synced 2025-04-03 01:08:59 -09:00
[MID] Implemented Revenge of the Drowned
This commit is contained in:
parent
b8e9214a3f
commit
13042a2bf9
2 changed files with 71 additions and 0 deletions
Mage.Sets/src/mage
70
Mage.Sets/src/mage/cards/r/RevengeOfTheDrowned.java
Normal file
70
Mage.Sets/src/mage/cards/r/RevengeOfTheDrowned.java
Normal file
|
@ -0,0 +1,70 @@
|
|||
package mage.cards.r;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.effects.common.PutOnLibraryTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.token.ZombieDecayedToken;
|
||||
import mage.players.Player;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class RevengeOfTheDrowned extends CardImpl {
|
||||
|
||||
public RevengeOfTheDrowned(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{3}{U}");
|
||||
|
||||
// Target creature's owner puts it on the top or bottom of their library. You create a 2/2 black Zombie creature token with decayed.
|
||||
this.getSpellAbility().addEffect(new RevengeOfTheDrownedEffect());
|
||||
this.getSpellAbility().addEffect(new CreateTokenEffect(new ZombieDecayedToken()).concatBy("You"));
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
}
|
||||
|
||||
private RevengeOfTheDrowned(final RevengeOfTheDrowned card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RevengeOfTheDrowned copy() {
|
||||
return new RevengeOfTheDrowned(this);
|
||||
}
|
||||
}
|
||||
|
||||
class RevengeOfTheDrownedEffect extends OneShotEffect {
|
||||
|
||||
RevengeOfTheDrownedEffect() {
|
||||
super(Outcome.Benefit);
|
||||
staticText = "target creature's owner puts it on the top or bottom of their library.";
|
||||
}
|
||||
|
||||
private RevengeOfTheDrownedEffect(final RevengeOfTheDrownedEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RevengeOfTheDrownedEffect copy() {
|
||||
return new RevengeOfTheDrownedEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player player = game.getPlayer(game.getOwnerId(source.getFirstTarget()));
|
||||
if (player == null) {
|
||||
return false;
|
||||
}
|
||||
if (player.chooseUse(Outcome.Detriment, "Put the targeted object on the top or bottom of your library?",
|
||||
"", "Top", "Bottom", source, game)) {
|
||||
return new PutOnLibraryTargetEffect(true).apply(game, source);
|
||||
}
|
||||
return new PutOnLibraryTargetEffect(false).apply(game, source);
|
||||
}
|
||||
}
|
|
@ -230,6 +230,7 @@ public final class InnistradMidnightHunt extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Raze the Effigy", 156, Rarity.COMMON, mage.cards.r.RazeTheEffigy.class));
|
||||
cards.add(new SetCardInfo("Reckless Stormseeker", 157, Rarity.RARE, mage.cards.r.RecklessStormseeker.class));
|
||||
cards.add(new SetCardInfo("Return to Nature", 195, Rarity.COMMON, mage.cards.r.ReturnToNature.class));
|
||||
cards.add(new SetCardInfo("Revenge of the Drowned", 72, Rarity.COMMON, mage.cards.r.RevengeOfTheDrowned.class));
|
||||
cards.add(new SetCardInfo("Rite of Harmony", 236, Rarity.RARE, mage.cards.r.RiteOfHarmony.class));
|
||||
cards.add(new SetCardInfo("Ritual Guardian", 30, Rarity.COMMON, mage.cards.r.RitualGuardian.class));
|
||||
cards.add(new SetCardInfo("Ritual of Hope", 31, Rarity.UNCOMMON, mage.cards.r.RitualOfHope.class));
|
||||
|
|
Loading…
Add table
Reference in a new issue