* Cavern of Souls - Fixed unintended info message during mana calculation (fixes #6996).

This commit is contained in:
LevelX2 2020-08-24 22:50:14 +02:00
parent 6b4336a00a
commit ced6965b59

View file

@ -1,8 +1,6 @@
package mage.cards.c;
import java.util.*;
import mage.ConditionalMana;
import mage.MageObject;
import mage.MageObjectReference;
@ -70,7 +68,7 @@ class CavernOfSoulsManaBuilder extends ConditionalManaBuilder {
}
Player controller = game.getPlayer(source.getControllerId());
MageObject sourceObject = game.getObject(source.getSourceId());
if (controller != null && sourceObject != null) {
if (game.inCheckPlayableState() && controller != null && sourceObject != null) {
game.informPlayers(controller.getLogName() + " produces " + mana.toString() + " with " + sourceObject.getLogName()
+ " (can only be spend to cast for creatures of type " + creatureType + " and that spell can't be countered)");
}