mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
[AFR] Implemented Power of Persuasion
This commit is contained in:
parent
99dc17ef93
commit
1f93a6cd6f
3 changed files with 89 additions and 6 deletions
|
|
@ -79,15 +79,12 @@ public class RollDieWithResultTableEffect extends OneShotEffect {
|
|||
sb.append(prefixText).append('.');
|
||||
for (TableEntry tableEntry : this.resultsTable) {
|
||||
sb.append("<br>");
|
||||
if (tableEntry.min == tableEntry.max) {
|
||||
sb.append(tableEntry.max);
|
||||
sb.append(' ');
|
||||
} else {
|
||||
if (tableEntry.min != tableEntry.max) {
|
||||
sb.append(tableEntry.min);
|
||||
sb.append('-');
|
||||
sb.append(tableEntry.max);
|
||||
sb.append(" | ");
|
||||
}
|
||||
sb.append(tableEntry.max);
|
||||
sb.append(" | ");
|
||||
sb.append(CardUtil.getTextWithFirstCharUpperCase(tableEntry.effects.getText(mode)));
|
||||
}
|
||||
return sb.toString();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue