From c784753ee6df6e320ecf5748b464a31a507cc234 Mon Sep 17 00:00:00 2001 From: Jeff Date: Mon, 11 Mar 2019 08:50:05 -0500 Subject: [PATCH] - little fixes. #5625 --- Mage.Sets/src/mage/cards/d/DereviEmpyrialTactician.java | 8 +++++--- .../effects/common/MayTapOrUntapTargetEffect.java | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Mage.Sets/src/mage/cards/d/DereviEmpyrialTactician.java b/Mage.Sets/src/mage/cards/d/DereviEmpyrialTactician.java index 851eff1ffb..307887aef9 100644 --- a/Mage.Sets/src/mage/cards/d/DereviEmpyrialTactician.java +++ b/Mage.Sets/src/mage/cards/d/DereviEmpyrialTactician.java @@ -1,4 +1,3 @@ - package mage.cards.d; import java.util.UUID; @@ -44,6 +43,7 @@ public final class DereviEmpyrialTactician extends CardImpl { // Flying this.addAbility(FlyingAbility.getInstance()); + // Whenever Derevi, Empyrial Tactician enters the battlefield or a creature you control deals combat damage to a player, you may tap or untap target permanent. Ability ability = new DereviEmpyrialTacticianTriggeredAbility(new MayTapOrUntapTargetEffect()); ability.addTarget(new TargetPermanent()); @@ -75,7 +75,8 @@ class DereviEmpyrialTacticianTriggeredAbility extends TriggeredAbilityImpl { @Override public boolean checkEventType(GameEvent event, Game game) { - return event.getType() == EventType.ENTERS_THE_BATTLEFIELD || event.getType() == EventType.DAMAGED_PLAYER; + return event.getType() == EventType.ENTERS_THE_BATTLEFIELD + || event.getType() == EventType.DAMAGED_PLAYER; } @Override @@ -87,7 +88,8 @@ class DereviEmpyrialTacticianTriggeredAbility extends TriggeredAbilityImpl { if (event.getType() == GameEvent.EventType.DAMAGED_PLAYER) { if (((DamagedPlayerEvent) event).isCombatDamage()) { Permanent creature = game.getPermanent(event.getSourceId()); - if (creature != null && creature.isControlledBy(controllerId)) { + if (creature != null + && creature.isControlledBy(controllerId)) { return true; } } diff --git a/Mage/src/main/java/mage/abilities/effects/common/MayTapOrUntapTargetEffect.java b/Mage/src/main/java/mage/abilities/effects/common/MayTapOrUntapTargetEffect.java index 4ce396a9a4..59ef2da86e 100644 --- a/Mage/src/main/java/mage/abilities/effects/common/MayTapOrUntapTargetEffect.java +++ b/Mage/src/main/java/mage/abilities/effects/common/MayTapOrUntapTargetEffect.java @@ -14,7 +14,7 @@ import mage.players.Player; public class MayTapOrUntapTargetEffect extends OneShotEffect { public MayTapOrUntapTargetEffect() { - super(Outcome.Benefit); + super(Outcome.AIDontUseIt); } public MayTapOrUntapTargetEffect(final MayTapOrUntapTargetEffect effect) {