From da92cd745ea8ac6e52f2fce6432ea18d6047d19a Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sun, 24 Jun 2018 01:27:42 +0200 Subject: [PATCH] * Some rework/fixes/optimizations of calculation of available mana. --- Mage/src/main/java/mage/abilities/mana/ManaOptions.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Mage/src/main/java/mage/abilities/mana/ManaOptions.java b/Mage/src/main/java/mage/abilities/mana/ManaOptions.java index cd649cc976..6633be31e8 100644 --- a/Mage/src/main/java/mage/abilities/mana/ManaOptions.java +++ b/Mage/src/main/java/mage/abilities/mana/ManaOptions.java @@ -189,7 +189,6 @@ public class ManaOptions extends ArrayList { if (moreValuable != null) { existingMana.setToMana(moreValuable); replaces++; - // logger.info("mana replaced " + newMana.toString() + " <=> " + existingMana.toString() + " from " + ability.getRule()); continue CombineWithExisting; } } @@ -205,9 +204,9 @@ public class ManaOptions extends ArrayList { } } } - if (this.size() > 5 || replaces > 5) { - logger.info("ManaOptionsCosts " + this.size() + " Ign:" + replaces + " => " + this.toString()); - logger.info("Abilities: " + abilities.toString()); + if (this.size() > 30 || replaces > 30) { + logger.trace("ManaOptionsCosts " + this.size() + " Ign:" + replaces + " => " + this.toString()); + logger.trace("Abilities: " + abilities.toString()); } }