mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Changed rule text generation.
This commit is contained in:
parent
8e992ca08f
commit
fc34c2e426
1 changed files with 6 additions and 1 deletions
|
@ -70,7 +70,12 @@ public class AddCardSubTypeTargetEffect extends ContinuousEffectImpl<AddCardSubT
|
||||||
@Override
|
@Override
|
||||||
public String getText(Mode mode) {
|
public String getText(Mode mode) {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append("Target ").append(mode.getTargets().get(0).getTargetName()).append(" becomes ").append(addedSubType).append(" in addition to its other types ").append(duration.toString());
|
if (mode.getTargets().size() > 0) {
|
||||||
|
sb.append("Target ").append(mode.getTargets().get(0).getTargetName());
|
||||||
|
} else {
|
||||||
|
sb.append("It ");
|
||||||
|
}
|
||||||
|
sb.append(" becomes ").append(addedSubType).append(" in addition to its other types ").append(duration.toString());
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue