mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
* Drastic Revelation - fixed that it discard not full hand;
This commit is contained in:
parent
563028043c
commit
3cdaa01b87
1 changed files with 5 additions and 10 deletions
|
@ -1,7 +1,5 @@
|
|||
|
||||
package mage.cards.d;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.cards.Card;
|
||||
|
@ -13,18 +11,15 @@ import mage.constants.Outcome;
|
|||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author jeffwadsworth
|
||||
*/
|
||||
public final class DrasticRevelation extends CardImpl {
|
||||
|
||||
public DrasticRevelation(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{2}{U}{B}{R}");
|
||||
|
||||
|
||||
|
||||
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{U}{B}{R}");
|
||||
|
||||
// Discard your hand. Draw seven cards, then discard three cards at random.
|
||||
this.getSpellAbility().addEffect(new DrasticRevelationEffect());
|
||||
|
@ -54,8 +49,8 @@ class DrasticRevelationEffect extends OneShotEffect {
|
|||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player you = game.getPlayer(source.getControllerId());
|
||||
if(you != null) {
|
||||
you.discardToMax(game);
|
||||
if (you != null) {
|
||||
you.discard(you.getHand().size(), false, source, game);
|
||||
you.drawCards(7, game);
|
||||
Cards hand = you.getHand();
|
||||
for (int i = 0; i < 3; i++) {
|
||||
|
|
Loading…
Reference in a new issue