* Sentinel - Fixed target handling.

This commit is contained in:
LevelX2 2016-01-06 22:15:43 +01:00
parent e9f58d20a5
commit 7e04e65e6f

View file

@ -33,7 +33,6 @@ import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.mana.GenericManaCost; import mage.abilities.costs.mana.GenericManaCost;
import mage.abilities.dynamicvalue.common.StaticValue; import mage.abilities.dynamicvalue.common.StaticValue;
import mage.abilities.effects.ContinuousEffect;
import mage.abilities.effects.OneShotEffect; import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.common.continuous.SetToughnessSourceEffect; import mage.abilities.effects.common.continuous.SetToughnessSourceEffect;
import mage.cards.CardImpl; import mage.cards.CardImpl;
@ -66,10 +65,9 @@ public class Sentinel extends CardImpl {
FilterCreaturePermanent filter = new FilterCreaturePermanent("creature blocking or blocked by Sentinel"); FilterCreaturePermanent filter = new FilterCreaturePermanent("creature blocking or blocked by Sentinel");
filter.add(Predicates.or(new BlockedByIdPredicate(this.getId()), filter.add(Predicates.or(new BlockedByIdPredicate(this.getId()),
new BlockingAttackerIdPredicate(this.getId()))); new BlockingAttackerIdPredicate(this.getId())));
// 0: Change Sentinel's base toughness to 1 plus the power of target creature blocking or blocked by Sentinel. (This effect lasts indefinitely.) // 0: Change Sentinel's base toughness to 1 plus the power of target creature blocking or blocked by Sentinel. (This effect lasts indefinitely.)
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SentinelEffect(), new GenericManaCost(0)); Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SentinelEffect(), new GenericManaCost(0));
ability.addTarget(null);
ability.addTarget(new TargetCreaturePermanent(filter)); ability.addTarget(new TargetCreaturePermanent(filter));
this.addAbility(ability); this.addAbility(ability);