mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
simplify boolean function
This commit is contained in:
@@ -124,11 +124,8 @@ 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),"?"));
|
||||
|
||||
Reference in New Issue
Block a user