mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
* Marionette Master and Mortis Dogs, fixed that power below 0 caused life gain.
This commit is contained in:
parent
68a6920b63
commit
df0cd60fbc
3 changed files with 24 additions and 7 deletions
|
|
@ -48,7 +48,7 @@ import mage.target.common.TargetOpponent;
|
|||
public class MarionetteMaster extends CardImpl {
|
||||
|
||||
public MarionetteMaster(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{B}{B}");
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{B}{B}");
|
||||
this.subtype.add("Human");
|
||||
this.subtype.add("Artificer");
|
||||
this.power = new MageInt(1);
|
||||
|
|
@ -58,7 +58,7 @@ public class MarionetteMaster extends CardImpl {
|
|||
this.addAbility(new FabricateAbility(3));
|
||||
|
||||
// Whenever an artifact you control is put into a graveyard from the battlefield, target opponent loses life equal to Marionette Master's power.
|
||||
Effect effect = new LoseLifeTargetEffect(new SourcePermanentPowerCount());
|
||||
Effect effect = new LoseLifeTargetEffect(new SourcePermanentPowerCount(false));
|
||||
effect.setText("target opponent loses life equal to Marionette Master's power");
|
||||
Ability ability = new PutIntoGraveFromBattlefieldAllTriggeredAbility(effect, false, new FilterControlledArtifactPermanent("an artifact you control"), false);
|
||||
ability.addTarget(new TargetOpponent());
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ import mage.target.TargetPlayer;
|
|||
public class MortisDogs extends CardImpl {
|
||||
|
||||
public MortisDogs(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{B}");
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{B}");
|
||||
this.subtype.add("Hound");
|
||||
|
||||
this.power = new MageInt(2);
|
||||
|
|
@ -57,7 +57,7 @@ public class MortisDogs extends CardImpl {
|
|||
// Whenever Mortis Dogs attacks, it gets +2/+0 until end of turn.
|
||||
this.addAbility(new AttacksTriggeredAbility(new BoostSourceEffect(2, 0, Duration.EndOfTurn), false));
|
||||
// When Mortis Dogs dies, target player loses life equal to its power.
|
||||
Ability ability = new DiesTriggeredAbility(new LoseLifeTargetEffect(new SourcePermanentPowerCount()));
|
||||
Ability ability = new DiesTriggeredAbility(new LoseLifeTargetEffect(new SourcePermanentPowerCount(false)));
|
||||
ability.addTarget(new TargetPlayer());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
@ -70,4 +70,4 @@ public class MortisDogs extends CardImpl {
|
|||
public MortisDogs copy() {
|
||||
return new MortisDogs(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue