mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-11 16:26:22 +00:00
Refactor AiProfile handling (#9012)
Co-authored-by: tool4EvEr <tool4EvEr@>
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user