From 98235ba57fcda84e600e2f70a5ac90c6a16aa343 Mon Sep 17 00:00:00 2001 From: Daniel Bomar Date: Fri, 1 Jan 2021 10:04:24 -0600 Subject: [PATCH] Fixed Cavern of Souls and similar cards spamming the game logs (bug #7079) (#7148) --- Mage.Sets/src/mage/cards/c/CavernOfSouls.java | 2 +- Mage.Sets/src/mage/cards/p/PillarOfOrigins.java | 2 +- Mage.Sets/src/mage/cards/u/UnclaimedTerritory.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Mage.Sets/src/mage/cards/c/CavernOfSouls.java b/Mage.Sets/src/mage/cards/c/CavernOfSouls.java index 5389ad251f..a5f860f800 100644 --- a/Mage.Sets/src/mage/cards/c/CavernOfSouls.java +++ b/Mage.Sets/src/mage/cards/c/CavernOfSouls.java @@ -68,7 +68,7 @@ class CavernOfSoulsManaBuilder extends ConditionalManaBuilder { } Player controller = game.getPlayer(source.getControllerId()); MageObject sourceObject = game.getObject(source.getSourceId()); - if (game.inCheckPlayableState() && controller != null && sourceObject != null) { + if (controller != null && sourceObject != null && mana.getAny() == 0) { 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)"); } diff --git a/Mage.Sets/src/mage/cards/p/PillarOfOrigins.java b/Mage.Sets/src/mage/cards/p/PillarOfOrigins.java index f238821e39..e1b7e60374 100644 --- a/Mage.Sets/src/mage/cards/p/PillarOfOrigins.java +++ b/Mage.Sets/src/mage/cards/p/PillarOfOrigins.java @@ -56,7 +56,7 @@ class PillarOfOriginsManaBuilder extends ConditionalManaBuilder { creatureType = ChooseCreatureTypeEffect.getChosenCreatureType(source.getSourceId(), game); Player controller = game.getPlayer(source.getControllerId()); MageObject sourceObject = game.getObject(source.getSourceId()); - if (controller != null && sourceObject != null) { + if (controller != null && sourceObject != null && mana.getAny() == 0) { game.informPlayers(controller.getLogName() + " produces " + mana.toString() + " with " + sourceObject.getLogName() + " (can only be spent to cast creatures of type " + creatureType + ")"); } diff --git a/Mage.Sets/src/mage/cards/u/UnclaimedTerritory.java b/Mage.Sets/src/mage/cards/u/UnclaimedTerritory.java index 393374047a..18ed52a276 100644 --- a/Mage.Sets/src/mage/cards/u/UnclaimedTerritory.java +++ b/Mage.Sets/src/mage/cards/u/UnclaimedTerritory.java @@ -63,7 +63,7 @@ class UnclaimedTerritoryManaBuilder extends ConditionalManaBuilder { } Player controller = game.getPlayer(source.getControllerId()); MageObject sourceObject = game.getObject(source.getSourceId()); - if (controller != null && sourceObject != null) { + if (controller != null && sourceObject != null && mana.getAny() == 0) { game.informPlayers(controller.getLogName() + " produces " + mana.toString() + " with " + sourceObject.getLogName() + " (can only be spent to cast creatures of type " + creatureType + ")"); }