auto close graveyard when delving and we have exiled enough to pay for the card.

This commit is contained in:
zethfoxster
2016-07-10 14:04:27 -04:00
parent 05a553ffdc
commit 1b54cf56e0

View File

@@ -1083,6 +1083,8 @@ int Delve::isPaymentSet()
} }
if (target && (source->controller()->getManaPool()->canAfford(toReduce))) if (target && (source->controller()->getManaPool()->canAfford(toReduce)))
{ {
if (target->getObserver()->guiOpenDisplay)
target->getObserver()->ButtonPressed(target->getObserver()->guiOpenDisplay);
SAFE_DELETE(toReduce); SAFE_DELETE(toReduce);
return 1; return 1;
} }