Refactor AiProfile handling (#9012)

Co-authored-by: tool4EvEr <tool4EvEr@>
This commit is contained in:
tool4ever
2025-10-28 05:26:18 +01:00
committed by GitHub
parent 364845ab4e
commit 954031cdb2
30 changed files with 175 additions and 261 deletions

View File

@@ -27,7 +27,7 @@ import forge.item.PaperCardPredicates;
import forge.util.Localizer;
import forge.util.PredicateString.StringOp;
public class VentureEffect extends SpellAbilityEffect {
public class VentureEffect extends SpellAbilityEffect {
private Card getDungeonCard(SpellAbility sa, Player player, Map<AbilityKey, Object> moveParams) {
final Game game = player.getGame();
@@ -44,7 +44,7 @@ public class VentureEffect extends SpellAbilityEffect {
}
}
List<PaperCard> dungeonCards = null;
List<PaperCard> dungeonCards;
if (sa.hasParam("Dungeon")) {
String dungeonType = sa.getParam("Dungeon");
Predicate<CardRules> rulesPredicate = CardRulesPredicates.IS_DUNGEON.and(CardRulesPredicates.subType(StringOp.EQUALS, dungeonType));