mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
- Little fix to Phyrexian Tyranny. Changed damage to loss of life.
This commit is contained in:
parent
24c08e14e4
commit
b874fc1672
1 changed files with 7 additions and 8 deletions
|
@ -52,8 +52,7 @@ import mage.target.targetpointer.FixedTarget;
|
||||||
public class PhyrexianTyranny extends CardImpl {
|
public class PhyrexianTyranny extends CardImpl {
|
||||||
|
|
||||||
public PhyrexianTyranny(UUID ownerId, CardSetInfo setInfo) {
|
public PhyrexianTyranny(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{U}{B}{R}");
|
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{U}{B}{R}");
|
||||||
|
|
||||||
|
|
||||||
// Whenever a player draws a card, that player loses 2 life unless he or she pays {2}.
|
// Whenever a player draws a card, that player loses 2 life unless he or she pays {2}.
|
||||||
this.addAbility(new PhyrexianTyrannyTriggeredAbility());
|
this.addAbility(new PhyrexianTyrannyTriggeredAbility());
|
||||||
|
@ -127,7 +126,7 @@ class PhyrexianTyrannyEffect extends OneShotEffect {
|
||||||
if (player != null) {
|
if (player != null) {
|
||||||
Cost cost = new GenericManaCost(2);
|
Cost cost = new GenericManaCost(2);
|
||||||
if (!cost.pay(source, game, player.getId(), player.getId(), false, null)) {
|
if (!cost.pay(source, game, player.getId(), player.getId(), false, null)) {
|
||||||
player.damage(2, source.getSourceId(), game, false, true);
|
player.loseLife(2, game, false);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue