mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Fix Sunbird's Invocation
This commit is contained in:
parent
3622206cf1
commit
3a3ca3ba96
1 changed files with 3 additions and 4 deletions
|
@ -111,7 +111,7 @@ class SunbirdsInvocationEffect extends OneShotEffect {
|
||||||
|
|
||||||
public SunbirdsInvocationEffect() {
|
public SunbirdsInvocationEffect() {
|
||||||
super(Outcome.PutCardInPlay);
|
super(Outcome.PutCardInPlay);
|
||||||
staticText = "reveal the top X cards of your library, where X is that spell's converted mana cost. You may cast a card revealed this way with converted mana cost X or less without paying its mana cost. Put the rest on the bottom of your library in a random order";
|
staticText = "Reveal the top X cards of your library, where X is that spell's converted mana cost. You may cast a card revealed this way with converted mana cost X or less without paying its mana cost. Put the rest on the bottom of your library in a random order";
|
||||||
}
|
}
|
||||||
|
|
||||||
public SunbirdsInvocationEffect(final SunbirdsInvocationEffect effect) {
|
public SunbirdsInvocationEffect(final SunbirdsInvocationEffect effect) {
|
||||||
|
@ -139,10 +139,9 @@ class SunbirdsInvocationEffect extends OneShotEffect {
|
||||||
Card card = cards.get(target.getFirstTarget(), game);
|
Card card = cards.get(target.getFirstTarget(), game);
|
||||||
if (card != null) {
|
if (card != null) {
|
||||||
if (controller.chooseUse(outcome, "Do you wish to cast " + card.getName(), source, game)) {
|
if (controller.chooseUse(outcome, "Do you wish to cast " + card.getName(), source, game)) {
|
||||||
Card copy = game.copyCard(card, source, source.getControllerId());
|
controller.cast(card.getSpellAbility(), game, true);
|
||||||
controller.cast(copy.getSpellAbility(), game, true);
|
cards.remove(card);
|
||||||
}
|
}
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue