Fix Ancient Excavation

This commit is contained in:
PurpleCrowbar 2024-07-29 00:10:03 +01:00
parent 683008ef21
commit 3ec3b773e3
2 changed files with 3 additions and 3 deletions

View file

@ -63,8 +63,8 @@ class AncientExcavationEffect extends OneShotEffect {
if (player != null) {
DynamicValue numCards = CardsInControllerHandCount.instance;
int amount = numCards.calculate(game, source, this);
player.drawCards(amount, source, game);
player.discard(amount, false, false, source, game);
int cardsDrawn = player.drawCards(amount, source, game);
player.discard(cardsDrawn, false, false, source, game);
return true;
}
return false;

View file

@ -44,7 +44,7 @@ public class MageDrawAction extends MageAction {
*
* @param source
* @param game Game context.
* @return
* @return Number of cards drawn
*/
@Override
public int doAction(Ability source, Game game) {