From 66e675f5c3a233fb198a9e4bf25b10f6fc4ae6a5 Mon Sep 17 00:00:00 2001 From: Alexander Novotny Date: Sat, 22 Apr 2023 11:20:44 -0700 Subject: [PATCH] Fixed issue with birth of the imperium (#10253) * Fixed issue with birth of the imperium The number of creatures was being counted, rather than the number of opponents * Update BirthOfTheImperium.java --------- Co-authored-by: Oleg Agafonov --- Mage.Sets/src/mage/cards/b/BirthOfTheImperium.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mage.Sets/src/mage/cards/b/BirthOfTheImperium.java b/Mage.Sets/src/mage/cards/b/BirthOfTheImperium.java index 350a82bc28..c00399806f 100644 --- a/Mage.Sets/src/mage/cards/b/BirthOfTheImperium.java +++ b/Mage.Sets/src/mage/cards/b/BirthOfTheImperium.java @@ -82,11 +82,11 @@ enum BirthOfTheImperiumValue implements DynamicValue { .map(Controllable::getControllerId) .collect(Collectors.toMap(Function.identity(), x -> 1, Integer::sum)); int yourCreatures = map.getOrDefault(sourceAbility.getControllerId(), 0); - return yourCreatures > 0 ? 2 * game + return yourCreatures > 0 ? (int) (2 * game .getOpponents(sourceAbility.getControllerId()) .stream().mapToInt(uuid -> map.getOrDefault(uuid, 0)) .filter(x -> x < yourCreatures) - .sum() : 0; + .count()) : 0; } @Override