Removed bloated logs

This commit is contained in:
Oleg Agafonov 2019-12-24 21:12:20 +04:00
parent fc6080e5b6
commit 5b9f0c970c
2 changed files with 5 additions and 10 deletions

View file

@ -578,6 +578,7 @@ public final class SystemUtil {
case OUTSIDE: case OUTSIDE:
card.setZone(Zone.OUTSIDE, game); card.setZone(Zone.OUTSIDE, game);
game.getExile().getPermanentExile().remove(card); game.getExile().getPermanentExile().remove(card);
break;
default: default:
card.moveToZone(zone, null, game, false); card.moveToZone(zone, null, game, false);
break; break;

View file

@ -13,9 +13,6 @@ import mage.constants.Outcome;
import mage.constants.SubType; import mage.constants.SubType;
import mage.target.Target; import mage.target.Target;
import mage.target.TargetPermanent; 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 mage.target.common.TargetPlayerOrPlaneswalker;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
@ -136,7 +133,7 @@ public final class RateCard {
private static int isEffectRemoval(Card card, Ability ability, Effect effect) { private static int isEffectRemoval(Card card, Ability ability, Effect effect) {
if (effect.getOutcome() == Outcome.Removal) { if (effect.getOutcome() == Outcome.Removal) {
log.debug("Found removal: " + card.getName()); // found removal
return 1; return 1;
} }
//static List<Effect> removalEffects =[BoostTargetEffect,BoostEnchantedEffect] //static List<Effect> removalEffects =[BoostTargetEffect,BoostEnchantedEffect]
@ -153,7 +150,7 @@ public final class RateCard {
if (effect.getOutcome() == Outcome.Damage || effect instanceof DamageTargetEffect) { if (effect.getOutcome() == Outcome.Damage || effect instanceof DamageTargetEffect) {
for (Target target : ability.getTargets()) { for (Target target : ability.getTargets()) {
if (!(target instanceof TargetPlayerOrPlaneswalker)) { if (!(target instanceof TargetPlayerOrPlaneswalker)) {
log.debug("Found damage dealer: " + card.getName()); // found damage dealer
return 1; return 1;
} }
} }
@ -163,11 +160,8 @@ public final class RateCard {
effect instanceof ExileTargetEffect || effect instanceof ExileTargetEffect ||
effect instanceof ExileUntilSourceLeavesEffect) { effect instanceof ExileUntilSourceLeavesEffect) {
for (Target target : ability.getTargets()) { for (Target target : ability.getTargets()) {
if (target instanceof TargetCreaturePermanent || if (target instanceof TargetPermanent) {
target instanceof TargetAttackingCreature || // found destroyer/exiler
target instanceof TargetAttackingOrBlockingCreature ||
target instanceof TargetPermanent) {
log.debug("Found destroyer/exiler: " + card.getName());
return 1; return 1;
} }
} }