mirror of
https://github.com/correl/mage.git
synced 2024-12-27 20:06:31 +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("Minotaur");
|
||||||
this.subtype.add("Warrior");
|
this.subtype.add("Warrior");
|
||||||
|
|
||||||
this.color.setRed(true);
|
|
||||||
this.power = new MageInt(5);
|
this.power = new MageInt(5);
|
||||||
this.toughness = new MageInt(2);
|
this.toughness = new MageInt(2);
|
||||||
|
|
||||||
|
@ -76,7 +75,7 @@ class RuinousMinotaurTriggeredAbility extends TriggeredAbilityImpl {
|
||||||
private static final FilterControlledPermanent filter = new FilterControlledLandPermanent();
|
private static final FilterControlledPermanent filter = new FilterControlledLandPermanent();
|
||||||
|
|
||||||
public RuinousMinotaurTriggeredAbility() {
|
public RuinousMinotaurTriggeredAbility() {
|
||||||
super(Zone.BATTLEFIELD, new SacrificeTargetEffect(), true);
|
super(Zone.BATTLEFIELD, new SacrificeTargetEffect(), false);
|
||||||
this.addTarget(new TargetControlledPermanent(filter));
|
this.addTarget(new TargetControlledPermanent(filter));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -89,13 +88,15 @@ class RuinousMinotaurTriggeredAbility extends TriggeredAbilityImpl {
|
||||||
return new RuinousMinotaurTriggeredAbility(this);
|
return new RuinousMinotaurTriggeredAbility(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean checkEventType(GameEvent event, Game game) {
|
||||||
|
return event.getType() == GameEvent.EventType.DAMAGED_PLAYER;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean checkTrigger(GameEvent event, Game game) {
|
public boolean checkTrigger(GameEvent event, Game game) {
|
||||||
if (event.getType() == GameEvent.EventType.DAMAGED_PLAYER && event.getSourceId().equals(this.sourceId)
|
return event.getSourceId().equals(this.sourceId)
|
||||||
&& game.getOpponents(this.getControllerId()).contains(event.getTargetId())) {
|
&& game.getOpponents(this.getControllerId()).contains(event.getTargetId());
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue