mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
ManaEffect: fix for adding from cost with generic half
This commit is contained in:
@@ -217,7 +217,7 @@ public class CreatureEvaluator implements Function<Card, Integer> {
|
||||
value += addValue(14, "paired");
|
||||
}
|
||||
|
||||
if (!c.getEncodedCards().isEmpty()) {
|
||||
if (!c.hasEncodedCard()) {
|
||||
value += addValue(24, "encoded");
|
||||
}
|
||||
|
||||
|
||||
@@ -1333,7 +1333,7 @@ public class AttachAi extends SpellAbilityAi {
|
||||
CardCollection preferred = CardLists.filter(list, new Predicate<Card>() {
|
||||
@Override
|
||||
public boolean apply(final Card card) {
|
||||
return card.getAttachedCards().isEmpty();
|
||||
return !card.hasCardAttachments();
|
||||
}
|
||||
});
|
||||
return preferred.isEmpty() ? Aggregates.random(list) : Aggregates.random(preferred);
|
||||
|
||||
Reference in New Issue
Block a user