Some minor changes to tooltip generation.

This commit is contained in:
LevelX2 2014-11-16 09:16:37 +01:00
parent 2c6c3e0311
commit a75dda1464
8 changed files with 72 additions and 27 deletions

View file

@ -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 ");