* Workaround for StackOverflowError #6994. Don't know yet why the loop happens - why the LookAtTopCardOfLibraryAnyTimeEffect is called during mana calculation..

This commit is contained in:
LevelX2 2020-08-24 16:53:08 +02:00
parent b5a1971aa3
commit bd413d2749

View file

@ -27,6 +27,9 @@ public class LookAtTopCardOfLibraryAnyTimeEffect extends ContinuousEffectImpl {
@Override
public boolean apply(Game game, Ability source) {
if (game.inCheckPlayableState()) { // Ignored - see https://github.com/magefree/mage/issues/6994
return false;
}
Player controller = game.getPlayer(source.getControllerId());
if (controller == null) {
return false;