mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
[ORI] 4 blue cards, some minor changes.
This commit is contained in:
parent
9ef707c0fa
commit
11b4db7cb7
12 changed files with 745 additions and 59 deletions
|
|
@ -4,6 +4,7 @@ import mage.abilities.Ability;
|
|||
import mage.abilities.condition.Condition;
|
||||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
/**
|
||||
* Condition for - Controller has X or more cards in his or her graveyard
|
||||
|
|
@ -23,4 +24,10 @@ public class CardsInControllerGraveCondition implements Condition {
|
|||
Player player = game.getPlayer(source.getControllerId());
|
||||
return player != null && player.getGraveyard().size() >= value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "there are " + CardUtil.numberToText(value, "one") + " or more cards in your graveyard";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,15 +25,12 @@
|
|||
* authors and should not be interpreted as representing official policies, either expressed
|
||||
* or implied, of BetaSteward_at_googlemail.com.
|
||||
*/
|
||||
|
||||
package mage.abilities.effects.common;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.dynamicvalue.common.StaticValue;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.cards.Card;
|
||||
import mage.cards.Cards;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.Zone;
|
||||
import mage.game.Game;
|
||||
|
|
@ -43,7 +40,6 @@ import mage.util.CardUtil;
|
|||
/**
|
||||
* @author LevelX2
|
||||
*/
|
||||
|
||||
public class PutTopCardOfLibraryIntoGraveTargetEffect extends OneShotEffect {
|
||||
|
||||
private DynamicValue numberCards;
|
||||
|
|
@ -51,6 +47,7 @@ public class PutTopCardOfLibraryIntoGraveTargetEffect extends OneShotEffect {
|
|||
public PutTopCardOfLibraryIntoGraveTargetEffect(int numberCards) {
|
||||
this(new StaticValue(numberCards));
|
||||
}
|
||||
|
||||
public PutTopCardOfLibraryIntoGraveTargetEffect(DynamicValue numberCards) {
|
||||
super(Outcome.Discard);
|
||||
this.numberCards = numberCards;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue