mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
simplify boolean function
This commit is contained in:
@@ -124,11 +124,8 @@ public class DigEffect extends SpellAbilityEffect {
|
|||||||
if (!top.isEmpty()) {
|
if (!top.isEmpty()) {
|
||||||
DelayedReveal delayedReveal = null;
|
DelayedReveal delayedReveal = null;
|
||||||
boolean hasRevealed = true;
|
boolean hasRevealed = true;
|
||||||
if (sa.hasParam("Reveal")) {
|
if (sa.hasParam("Reveal") && "True".equalsIgnoreCase(sa.getParam("Reveal"))) {
|
||||||
final boolean doReveal = "True".equals(sa.getParam("Reveal"));
|
|
||||||
if (doReveal) {
|
|
||||||
game.getAction().reveal(top, p, false);
|
game.getAction().reveal(top, p, false);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if (sa.hasParam("RevealOptional")) {
|
else if (sa.hasParam("RevealOptional")) {
|
||||||
String question = TextUtil.concatWithSpace(Localizer.getInstance().getMessage("lblReveal") + ":", TextUtil.addSuffix(Lang.joinHomogenous(top),"?"));
|
String question = TextUtil.concatWithSpace(Localizer.getInstance().getMessage("lblReveal") + ":", TextUtil.addSuffix(Lang.joinHomogenous(top),"?"));
|
||||||
|
|||||||
Reference in New Issue
Block a user