mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
- little fixes. #5625
This commit is contained in:
parent
3fb18b334d
commit
c784753ee6
2 changed files with 6 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue