Fixed tooltip rule generation.

This commit is contained in:
LevelX2 2013-01-08 00:30:25 +01:00
parent 1b8adc2b25
commit cdcc24a159

View file

@ -138,7 +138,10 @@ public class GainAbilityControlledEffect extends ContinuousEffectImpl<GainAbilit
else {
sb.append("gain ");
}
sb.append(gainedAbility).append(" ").append(duration.toString());
sb.append(gainedAbility);
if (!duration.toString().isEmpty()) {
sb.append(" ").append(duration.toString());
}
staticText = sb.toString();
}