Fix: ShamanicRituals, Building13Test. Add: Building11Test
This commit is contained in:
+4
-2
@@ -24,11 +24,13 @@ public class ShamanicRitual extends EventCard {
|
||||
public void activateEvent (ArrayList <Player> playerList){
|
||||
Map<Player, Integer> playerMap = new HashMap<>();
|
||||
int tmpIcons = 0;
|
||||
int tmpCount = 0;
|
||||
|
||||
for (Player player : playerList) {
|
||||
tmpIcons = player.shamans.stream().mapToInt(sh -> sh.getIcon()).sum();
|
||||
if (player.buildingCards.stream().anyMatch(b -> b.getEffectId() == 5)) {
|
||||
tmpIcons = tmpIcons+3;
|
||||
tmpCount = (int) player.buildingCards.stream().filter(b -> b.getEffectId() == 5).count();
|
||||
if (tmpCount > 1) {
|
||||
tmpIcons = tmpIcons+(3*tmpCount);
|
||||
}
|
||||
playerMap.put(player, tmpIcons);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user