* Ruinous Minotaur - Fixed that the sacrifice was optional.

This commit is contained in:
LevelX2 2015-04-09 09:31:04 +02:00
parent 941adbca86
commit 7455e0e0bc

View file

@ -53,7 +53,6 @@ public class RuinousMinotaur extends CardImpl {
this.subtype.add("Minotaur");
this.subtype.add("Warrior");
this.color.setRed(true);
this.power = new MageInt(5);
this.toughness = new MageInt(2);
@ -76,7 +75,7 @@ class RuinousMinotaurTriggeredAbility extends TriggeredAbilityImpl {
private static final FilterControlledPermanent filter = new FilterControlledLandPermanent();
public RuinousMinotaurTriggeredAbility() {
super(Zone.BATTLEFIELD, new SacrificeTargetEffect(), true);
super(Zone.BATTLEFIELD, new SacrificeTargetEffect(), false);
this.addTarget(new TargetControlledPermanent(filter));
}
@ -89,13 +88,15 @@ class RuinousMinotaurTriggeredAbility extends TriggeredAbilityImpl {
return new RuinousMinotaurTriggeredAbility(this);
}
@Override
public boolean checkEventType(GameEvent event, Game game) {
return event.getType() == GameEvent.EventType.DAMAGED_PLAYER;
}
@Override
public boolean checkTrigger(GameEvent event, Game game) {
if (event.getType() == GameEvent.EventType.DAMAGED_PLAYER && event.getSourceId().equals(this.sourceId)
&& game.getOpponents(this.getControllerId()).contains(event.getTargetId())) {
return true;
}
return false;
return event.getSourceId().equals(this.sourceId)
&& game.getOpponents(this.getControllerId()).contains(event.getTargetId());
}
@Override