- Little fix to Phyrexian Tyranny. Changed damage to loss of life.

This commit is contained in:
Achilles 2017-02-18 08:49:17 -06:00
parent 24c08e14e4
commit b874fc1672

View file

@ -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());
@ -70,15 +69,15 @@ public class PhyrexianTyranny extends CardImpl {
} }
class PhyrexianTyrannyTriggeredAbility extends TriggeredAbilityImpl { class PhyrexianTyrannyTriggeredAbility extends TriggeredAbilityImpl {
PhyrexianTyrannyTriggeredAbility() { PhyrexianTyrannyTriggeredAbility() {
super(Zone.BATTLEFIELD, new PhyrexianTyrannyEffect(), false); super(Zone.BATTLEFIELD, new PhyrexianTyrannyEffect(), false);
} }
PhyrexianTyrannyTriggeredAbility(final PhyrexianTyrannyTriggeredAbility ability) { PhyrexianTyrannyTriggeredAbility(final PhyrexianTyrannyTriggeredAbility ability) {
super(ability); super(ability);
} }
@Override @Override
public PhyrexianTyrannyTriggeredAbility copy() { public PhyrexianTyrannyTriggeredAbility copy() {
return new PhyrexianTyrannyTriggeredAbility(this); return new PhyrexianTyrannyTriggeredAbility(this);
@ -88,7 +87,7 @@ class PhyrexianTyrannyTriggeredAbility extends TriggeredAbilityImpl {
public boolean checkEventType(GameEvent event, Game game) { public boolean checkEventType(GameEvent event, Game game) {
return event.getType() == EventType.DREW_CARD; return event.getType() == EventType.DREW_CARD;
} }
@Override @Override
public boolean checkTrigger(GameEvent event, Game game) { public boolean checkTrigger(GameEvent event, Game game) {
for (Effect effect : this.getEffects()) { for (Effect effect : this.getEffects()) {
@ -98,7 +97,7 @@ class PhyrexianTyrannyTriggeredAbility extends TriggeredAbilityImpl {
} }
return true; return true;
} }
@Override @Override
public String getRule() { public String getRule() {
return "Whenever a player draws a card, that player loses 2 life unless he or she pays {2}"; return "Whenever a player draws a card, that player loses 2 life unless he or she pays {2}";
@ -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;
} }