forked from External/mage
Some minor changes to tooltip generation.
This commit is contained in:
parent
2c6c3e0311
commit
a75dda1464
8 changed files with 72 additions and 27 deletions
|
|
@ -73,6 +73,9 @@ public class PreventDamageToTargetEffect extends PreventionEffectImpl {
|
|||
|
||||
@Override
|
||||
public String getText(Mode mode) {
|
||||
if (staticText != null && !staticText.isEmpty()) {
|
||||
return staticText;
|
||||
}
|
||||
StringBuilder sb = new StringBuilder();
|
||||
if (amountToPrevent == Integer.MAX_VALUE) {
|
||||
sb.append("Prevent all damage that would be dealt to target ");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue