forked from External/mage
Followup text fixes
This commit is contained in:
parent
185fae28a4
commit
176a61190b
9 changed files with 29 additions and 32 deletions
|
|
@ -49,7 +49,7 @@ public class CastOnlyIfConditionIsTrueEffect extends ContinuousRuleModifyingEffe
|
|||
}
|
||||
|
||||
private String setText() {
|
||||
StringBuilder sb = new StringBuilder("cast this spell only ");
|
||||
StringBuilder sb = new StringBuilder("cast this spell only if ");
|
||||
if (condition != null) {
|
||||
sb.append(condition);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,12 +40,9 @@ public class ControlsPermanentsComparedToOpponentsCondition implements Condition
|
|||
@Override
|
||||
public String toString() {
|
||||
switch (type) {
|
||||
case EQUAL_TO: return String.format("equal %s to each opponent", filterPermanent.getMessage());
|
||||
case FEWER_THAN: return String.format("fewer %s than each opponent", filterPermanent.getMessage());
|
||||
case MORE_THAN: return String.format("more %s than each opponent", filterPermanent.getMessage());
|
||||
case OR_LESS: return String.format("fewer or equal %s than each opponent", filterPermanent.getMessage());
|
||||
case OR_GREATER: return String.format("more or equal %s than each opponent", filterPermanent.getMessage());
|
||||
default: throw new IllegalArgumentException("comparison rules for " + type + " missing");
|
||||
case FEWER_THAN: return String.format("you control fewer %s than each opponent", filterPermanent.getMessage());
|
||||
case MORE_THAN: return String.format("you control more %s than each opponent", filterPermanent.getMessage());
|
||||
default: return "";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,8 @@ public class CantBeBlockedByMoreThanOneSourceEffect extends ContinuousEffectImpl
|
|||
public CantBeBlockedByMoreThanOneSourceEffect(int amount, Duration duration) {
|
||||
super(duration, Outcome.Benefit);
|
||||
this.amount = amount;
|
||||
staticText = "{this} can't be blocked by more than " + CardUtil.numberToText(amount) + " creature" + (amount > 1 ? "s" : "");
|
||||
staticText = "{this} can't be blocked by more than " + CardUtil.numberToText(amount) + " creature" + (amount > 1 ? "s" : "")
|
||||
+ (duration == Duration.EndOfTurn ? " each combat this turn" : "");
|
||||
}
|
||||
|
||||
public CantBeBlockedByMoreThanOneSourceEffect(final CantBeBlockedByMoreThanOneSourceEffect effect) {
|
||||
|
|
@ -49,10 +50,8 @@ public class CantBeBlockedByMoreThanOneSourceEffect extends ContinuousEffectImpl
|
|||
public boolean apply(Layer layer, SubLayer sublayer, Ability source, Game game) {
|
||||
Permanent perm = game.getPermanent(source.getSourceId());
|
||||
if (perm != null) {
|
||||
switch (layer) {
|
||||
case RulesEffects:
|
||||
perm.setMaxBlockedBy(amount);
|
||||
break;
|
||||
if (layer == Layer.RulesEffects) {
|
||||
perm.setMaxBlockedBy(amount);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue