mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
* Ruinous Minotaur - Fixed that the sacrifice was optional.
This commit is contained in:
parent
941adbca86
commit
7455e0e0bc
1 changed files with 8 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue