* Drastic Revelation - fixed that it discard not full hand;

This commit is contained in:
Oleg Agafonov 2019-01-09 05:03:19 +04:00
parent 563028043c
commit 3cdaa01b87

View file

@ -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++) {