Fix mulligan with zero cards

This commit is contained in:
tool4EvEr
2021-08-05 21:42:04 +02:00
parent 1d4f68d95f
commit 32b4407b04
3 changed files with 2 additions and 3 deletions

View File

@@ -116,7 +116,6 @@ public class CardFactory {
//out.setFaceDown(in.isFaceDown());
return out;
}
/**
@@ -740,7 +739,6 @@ public class CardFactory {
}
}
if (sa.hasParam("GainThisAbility") && (sa instanceof SpellAbility)) {
SpellAbility root = ((SpellAbility) sa).getRootAbility();

View File

@@ -29,6 +29,7 @@ public abstract class AbstractMulligan {
public void mulligan() {
CardCollection toMulligan = new CardCollection(player.getCardsIn(ZoneType.Hand));
if (toMulligan.isEmpty()) return;
revealPreMulligan(toMulligan);
for (final Card c : toMulligan) {
player.getGame().getAction().moveToLibrary(c, null);