mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
* Maralen of the Mornsong - Fixed the bugged card moving to hand.
This commit is contained in:
parent
69340d9b06
commit
b5123883ff
1 changed files with 3 additions and 6 deletions
|
@ -34,9 +34,9 @@ import mage.abilities.common.BeginningOfDrawTriggeredAbility;
|
||||||
import mage.abilities.common.SimpleStaticAbility;
|
import mage.abilities.common.SimpleStaticAbility;
|
||||||
import mage.abilities.effects.ContinuousRuleModifyingEffectImpl;
|
import mage.abilities.effects.ContinuousRuleModifyingEffectImpl;
|
||||||
import mage.abilities.effects.OneShotEffect;
|
import mage.abilities.effects.OneShotEffect;
|
||||||
import mage.cards.Card;
|
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.cards.CardsImpl;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
import mage.constants.Duration;
|
import mage.constants.Duration;
|
||||||
import mage.constants.Outcome;
|
import mage.constants.Outcome;
|
||||||
|
@ -54,7 +54,7 @@ import mage.target.common.TargetCardInLibrary;
|
||||||
public class MaralenOfTheMornsong extends CardImpl {
|
public class MaralenOfTheMornsong extends CardImpl {
|
||||||
|
|
||||||
public MaralenOfTheMornsong(UUID ownerId, CardSetInfo setInfo) {
|
public MaralenOfTheMornsong(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{B}{B}");
|
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{B}{B}");
|
||||||
this.supertype.add("Legendary");
|
this.supertype.add("Legendary");
|
||||||
this.subtype.add("Elf");
|
this.subtype.add("Elf");
|
||||||
this.subtype.add("Wizard");
|
this.subtype.add("Wizard");
|
||||||
|
@ -131,10 +131,7 @@ class MaralenOfTheMornsongEffect2 extends OneShotEffect {
|
||||||
player.loseLife(3, game, false);
|
player.loseLife(3, game, false);
|
||||||
TargetCardInLibrary target = new TargetCardInLibrary();
|
TargetCardInLibrary target = new TargetCardInLibrary();
|
||||||
if (player.searchLibrary(target, game)) {
|
if (player.searchLibrary(target, game)) {
|
||||||
for (UUID cardId : target.getTargets()) {
|
player.moveCards(new CardsImpl(target.getTargets()), Zone.HAND, source, game);
|
||||||
Card card = player.getLibrary().getCard(cardId, game);
|
|
||||||
player.putInHand(card, game);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
player.shuffleLibrary(source, game);
|
player.shuffleLibrary(source, game);
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue