mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
* See the Unwritten - Fixed that if a creature with power 4 or more was put into play if there was none before on battlefield, the Ferocious effect was resolved after too.
This commit is contained in:
parent
8763613399
commit
267b63cfd2
1 changed files with 10 additions and 7 deletions
|
@ -30,6 +30,7 @@ package mage.sets.khansoftarkir;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import mage.MageObject;
|
import mage.MageObject;
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
|
import mage.abilities.Mode;
|
||||||
import mage.abilities.condition.InvertCondition;
|
import mage.abilities.condition.InvertCondition;
|
||||||
import mage.abilities.condition.common.FerociousCondition;
|
import mage.abilities.condition.common.FerociousCondition;
|
||||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
import mage.abilities.decorator.ConditionalOneShotEffect;
|
||||||
|
@ -46,6 +47,7 @@ import mage.filter.common.FilterCreatureCard;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.players.Player;
|
import mage.players.Player;
|
||||||
import mage.target.TargetCard;
|
import mage.target.TargetCard;
|
||||||
|
import mage.util.CardUtil;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -62,15 +64,13 @@ public class SeeTheUnwritten extends CardImpl {
|
||||||
this.color.setGreen(true);
|
this.color.setGreen(true);
|
||||||
|
|
||||||
// Reveal the top eight cards of your library. You may put a creature card from among them onto the battlefield. Put the rest into your graveyard.
|
// Reveal the top eight cards of your library. You may put a creature card from among them onto the battlefield. Put the rest into your graveyard.
|
||||||
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
|
|
||||||
new SeeTheUnwrittenEffect(1),
|
|
||||||
new InvertCondition(FerociousCondition.getInstance()),
|
|
||||||
"Reveal the top eight cards of your library. You may put a creature card from among them onto the battlefield. Put the rest into your graveyard"));
|
|
||||||
// <i>Ferocious</i> - If you control a creature with power 4 or greater, you may put two creature cards onto the battlefield instead of one.
|
// <i>Ferocious</i> - If you control a creature with power 4 or greater, you may put two creature cards onto the battlefield instead of one.
|
||||||
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
|
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
|
||||||
|
new SeeTheUnwrittenEffect(1),
|
||||||
new SeeTheUnwrittenEffect(2),
|
new SeeTheUnwrittenEffect(2),
|
||||||
FerociousCondition.getInstance(),
|
new InvertCondition(FerociousCondition.getInstance()),
|
||||||
"<br/><br/><i>Ferocious</i> - If you control a creature with power 4 or greater, you may put two creature cards onto the battlefield instead of one"));
|
"Reveal the top eight cards of your library. You may put a creature card from among them onto the battlefield. Put the rest into your graveyard" +
|
||||||
|
"<br/><br/><i>Ferocious</i> - If you control a creature with power 4 or greater, you may put two creature cards onto the battlefield instead of one" ));
|
||||||
}
|
}
|
||||||
|
|
||||||
public SeeTheUnwritten(final SeeTheUnwritten card) {
|
public SeeTheUnwritten(final SeeTheUnwritten card) {
|
||||||
|
@ -92,7 +92,9 @@ class SeeTheUnwrittenEffect extends OneShotEffect {
|
||||||
public SeeTheUnwrittenEffect(int numberOfCardsToPutIntoPlay) {
|
public SeeTheUnwrittenEffect(int numberOfCardsToPutIntoPlay) {
|
||||||
super(Outcome.DrawCard);
|
super(Outcome.DrawCard);
|
||||||
this.numberOfCardsToPutIntoPlay = numberOfCardsToPutIntoPlay;
|
this.numberOfCardsToPutIntoPlay = numberOfCardsToPutIntoPlay;
|
||||||
this.staticText = "Reveal the top eight cards of your library. You may put a creature card from among them onto the battlefield. Put the rest into your graveyard";
|
this.staticText = "Reveal the top eight cards of your library. You may put " +
|
||||||
|
(numberOfCardsToPutIntoPlay == 1 ? "a creature card":"two creature cards") +
|
||||||
|
" from among them onto the battlefield. Put the rest into your graveyard";
|
||||||
}
|
}
|
||||||
|
|
||||||
public SeeTheUnwrittenEffect(final SeeTheUnwrittenEffect effect) {
|
public SeeTheUnwrittenEffect(final SeeTheUnwrittenEffect effect) {
|
||||||
|
@ -149,4 +151,5 @@ class SeeTheUnwrittenEffect extends OneShotEffect {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue