1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-13 01:01:11 -09:00

Fixed static text.

This commit is contained in:
magenoxx 2012-01-28 11:04:41 +04:00
parent d641a6de72
commit 49c403da0e

View file

@ -1,5 +1,5 @@
/*
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
* Copyright 2012 BetaSteward_at_googlemail.com. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
@ -40,8 +40,7 @@ import mage.game.Game;
import mage.game.permanent.Permanent;
/**
*
* @author Backfir3
* @author Backfir3, noxx
*/
public class SetToughnessSourceEffect extends ContinuousEffectImpl<SetToughnessSourceEffect> {
@ -51,13 +50,13 @@ public class SetToughnessSourceEffect extends ContinuousEffectImpl<SetToughnessS
public SetToughnessSourceEffect(DynamicValue amount, Duration duration) {
super(duration, Layer.PTChangingEffects_7, SubLayer.SetPT_7b, Outcome.BoostCreature);
this.amount = amount;
staticText = "{this}'s toughness are each equal to the number of " + amount.getMessage();
staticText = "{this}'s toughness is equal to the number of " + amount.getMessage();
}
public SetToughnessSourceEffect(int power, int toughness, Duration duration) {
super(duration, Layer.PTChangingEffects_7, SubLayer.SetPT_7b, Outcome.BoostCreature);
this.toughness = toughness;
staticText = "{this}'s toughness is " + power + "/" + toughness;
staticText = "{this}'s toughness is " + toughness;
}
public SetToughnessSourceEffect(final SetToughnessSourceEffect effect) {
@ -79,8 +78,7 @@ public class SetToughnessSourceEffect extends ContinuousEffectImpl<SetToughnessS
int value = amount.calculate(game, source);
target.getToughness().setValue(value);
return true;
}
else {
} else {
if (toughness != Integer.MIN_VALUE)
target.getToughness().setValue(toughness);
}