AddCountersTargetEffect set outcome of -1/-1 counter to unboost for AI handling.

This commit is contained in:
LevelX2 2014-01-02 12:15:39 +01:00
parent d388750e54
commit 383bc47ffd

View file

@ -40,6 +40,7 @@ import java.util.UUID;
import mage.abilities.Mode;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.dynamicvalue.common.StaticValue;
import mage.counters.CounterType;
import mage.util.CardUtil;
/**
@ -52,7 +53,7 @@ public class AddCountersTargetEffect extends OneShotEffect<AddCountersTargetEffe
private DynamicValue amount;
public AddCountersTargetEffect(Counter counter) {
this(counter, Outcome.Benefit);
this(counter, counter.getName().equals(CounterType.M1M1.getName()) ? Outcome.UnboostCreature: Outcome.Benefit);
}
public AddCountersTargetEffect(Counter counter, DynamicValue amount) {