simplify boolean function

This commit is contained in:
Northmoc
2021-05-07 15:06:40 -04:00
parent 1ce213004a
commit f97adc325f

View File

@@ -124,12 +124,9 @@ public class DigEffect extends SpellAbilityEffect {
if (!top.isEmpty()) {
DelayedReveal delayedReveal = null;
boolean hasRevealed = true;
if (sa.hasParam("Reveal")) {
final boolean doReveal = "True".equals(sa.getParam("Reveal"));
if (doReveal) {
if (sa.hasParam("Reveal") && "True".equalsIgnoreCase(sa.getParam("Reveal"))) {
game.getAction().reveal(top, p, false);
}
}
else if (sa.hasParam("RevealOptional")) {
String question = TextUtil.concatWithSpace(Localizer.getInstance().getMessage("lblReveal") + ":", TextUtil.addSuffix(Lang.joinHomogenous(top),"?"));