mirror of
https://github.com/correl/mage.git
synced 2024-12-25 19:25:41 +00:00
Minor framework fixes.
This commit is contained in:
parent
83e1290fb7
commit
199af48a43
2 changed files with 4 additions and 1 deletions
|
@ -62,6 +62,7 @@ public abstract class RestrictionEffect<T extends RestrictionEffect<T>> extends
|
|||
public RestrictionEffect(final RestrictionEffect effect) {
|
||||
super(effect);
|
||||
this.notMoreThanRestriction = effect.notMoreThanRestriction;
|
||||
this.notMoreThanNumber = effect.notMoreThanNumber;
|
||||
if (this.notMoreThanNumberFilter != null) {
|
||||
this.notMoreThanNumberFilter = effect.notMoreThanNumberFilter.copy();
|
||||
}
|
||||
|
|
|
@ -39,6 +39,7 @@ import mage.game.permanent.Permanent;
|
|||
import mage.players.Player;
|
||||
import mage.target.Target;
|
||||
import mage.target.common.TargetOpponent;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -114,7 +115,8 @@ class TributeEffect extends OneShotEffect<TributeEffect> {
|
|||
if (opponent != null) {
|
||||
StringBuilder sb = new StringBuilder("Pay tribute to ");
|
||||
sb.append(sourcePermanent.getName());
|
||||
sb.append(" (add ").append(tributeValue).append(" +1/+1 counters to it)?");
|
||||
sb.append(" (add ").append(CardUtil.numberToText(tributeValue)).append(" +1/+1 counter");
|
||||
sb.append(tributeValue > 1 ? "s":"").append("to it)?");
|
||||
if (opponent.chooseUse(outcome, sb.toString(), game)) {
|
||||
sourcePermanent.addCounters(CounterType.P1P1.createInstance(tributeValue), game);
|
||||
game.getState().setValue(new StringBuilder("tributeValue").append(source.getSourceId()).toString(), "yes");
|
||||
|
|
Loading…
Reference in a new issue