From 5b9f0c970cfa561978ed646cf80d9a7df2060378 Mon Sep 17 00:00:00 2001 From: Oleg Agafonov Date: Tue, 24 Dec 2019 21:12:20 +0400 Subject: [PATCH] Removed bloated logs --- .../src/main/java/mage/server/util/SystemUtil.java | 1 + Mage/src/main/java/mage/game/draft/RateCard.java | 14 ++++---------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/Mage.Server/src/main/java/mage/server/util/SystemUtil.java b/Mage.Server/src/main/java/mage/server/util/SystemUtil.java index 527df26e08..16789e46e6 100644 --- a/Mage.Server/src/main/java/mage/server/util/SystemUtil.java +++ b/Mage.Server/src/main/java/mage/server/util/SystemUtil.java @@ -578,6 +578,7 @@ public final class SystemUtil { case OUTSIDE: card.setZone(Zone.OUTSIDE, game); game.getExile().getPermanentExile().remove(card); + break; default: card.moveToZone(zone, null, game, false); break; diff --git a/Mage/src/main/java/mage/game/draft/RateCard.java b/Mage/src/main/java/mage/game/draft/RateCard.java index aa83b50052..4ad85a9104 100644 --- a/Mage/src/main/java/mage/game/draft/RateCard.java +++ b/Mage/src/main/java/mage/game/draft/RateCard.java @@ -13,9 +13,6 @@ import mage.constants.Outcome; import mage.constants.SubType; import mage.target.Target; import mage.target.TargetPermanent; -import mage.target.common.TargetAttackingCreature; -import mage.target.common.TargetAttackingOrBlockingCreature; -import mage.target.common.TargetCreaturePermanent; import mage.target.common.TargetPlayerOrPlaneswalker; import org.apache.log4j.Logger; @@ -136,7 +133,7 @@ public final class RateCard { private static int isEffectRemoval(Card card, Ability ability, Effect effect) { if (effect.getOutcome() == Outcome.Removal) { - log.debug("Found removal: " + card.getName()); + // found removal return 1; } //static List removalEffects =[BoostTargetEffect,BoostEnchantedEffect] @@ -153,7 +150,7 @@ public final class RateCard { if (effect.getOutcome() == Outcome.Damage || effect instanceof DamageTargetEffect) { for (Target target : ability.getTargets()) { if (!(target instanceof TargetPlayerOrPlaneswalker)) { - log.debug("Found damage dealer: " + card.getName()); + // found damage dealer return 1; } } @@ -163,11 +160,8 @@ public final class RateCard { effect instanceof ExileTargetEffect || effect instanceof ExileUntilSourceLeavesEffect) { for (Target target : ability.getTargets()) { - if (target instanceof TargetCreaturePermanent || - target instanceof TargetAttackingCreature || - target instanceof TargetAttackingOrBlockingCreature || - target instanceof TargetPermanent) { - log.debug("Found destroyer/exiler: " + card.getName()); + if (target instanceof TargetPermanent) { + // found destroyer/exiler return 1; } }