mirror of
https://github.com/correl/mage.git
synced 2024-12-29 03:00:15 +00:00
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 <jaydi85@gmail.com>
This commit is contained in:
parent
7d44057f93
commit
66e675f5c3
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue