From 9d0aff8395a104bc59dc601fcfb539f1638fdcbf Mon Sep 17 00:00:00 2001 From: Oleg Agafonov Date: Thu, 17 May 2018 19:32:47 +0400 Subject: [PATCH] AI: fixed outcome for lose ability effect --- .../effects/common/continuous/LoseAbilityAllEffect.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Mage/src/main/java/mage/abilities/effects/common/continuous/LoseAbilityAllEffect.java b/Mage/src/main/java/mage/abilities/effects/common/continuous/LoseAbilityAllEffect.java index c7ba03e376..789be1a64e 100644 --- a/Mage/src/main/java/mage/abilities/effects/common/continuous/LoseAbilityAllEffect.java +++ b/Mage/src/main/java/mage/abilities/effects/common/continuous/LoseAbilityAllEffect.java @@ -74,7 +74,7 @@ public class LoseAbilityAllEffect extends ContinuousEffectImpl { } public LoseAbilityAllEffect(CompoundAbility ability, Duration duration, FilterPermanent filter, boolean excludeSource) { - super(duration, Layer.AbilityAddingRemovingEffects_6, SubLayer.NA, Outcome.AddAbility); + super(duration, Layer.AbilityAddingRemovingEffects_6, SubLayer.NA, Outcome.LoseAbility); this.ability = ability; this.filter = filter; this.excludeSource = excludeSource; @@ -123,6 +123,7 @@ public class LoseAbilityAllEffect extends ContinuousEffectImpl { } else { for (Permanent perm : game.getBattlefield().getActivePermanents(filter, source.getControllerId(), source.getSourceId(), game)) { if (!(excludeSource && perm.getId().equals(source.getSourceId()))) { + System.out.println(game.getTurn() + ", " + game.getPhase() + ": " + "remove from size " + perm.getAbilities().size()); for (Ability ability : ability) { perm.getAbilities().removeIf(entry -> entry.getId().equals(ability.getId())); }