Improved rule text generation.

This commit is contained in:
LevelX2 2013-01-24 01:00:41 +01:00
parent 8e8455150c
commit f6ffec2e16

View file

@ -112,7 +112,11 @@ public class GainAbilityAllEffect extends ContinuousEffectImpl<GainAbilityAllEff
}
sb.append(filter.getMessage());
if (duration.equals(Duration.WhileOnBattlefield)) {
sb.append(" have ");
if (filter.getMessage().toLowerCase().startsWith("each")) {
sb.append(" has ");
} else {
sb.append(" have ");
}
} else {
sb.append(" gain ");
}