Fix: shamanicRitual
This commit is contained in:
+1
-2
@@ -19,7 +19,6 @@ public class ShamanicRitual extends EventCard {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO è completamente scorretto... da controllare numero icone sciamani
|
|
||||||
@Override
|
@Override
|
||||||
public void activateEvent (ArrayList <Player> playerList){
|
public void activateEvent (ArrayList <Player> playerList){
|
||||||
Map<Player, Integer> playerMap = new HashMap<>();
|
Map<Player, Integer> playerMap = new HashMap<>();
|
||||||
@@ -29,7 +28,7 @@ public class ShamanicRitual extends EventCard {
|
|||||||
for (Player player : playerList) {
|
for (Player player : playerList) {
|
||||||
tmpIcons = player.shamans.stream().mapToInt(sh -> sh.getIcon()).sum();
|
tmpIcons = player.shamans.stream().mapToInt(sh -> sh.getIcon()).sum();
|
||||||
tmpCount = (int) player.buildingCards.stream().filter(b -> b.getEffectId() == 5).count();
|
tmpCount = (int) player.buildingCards.stream().filter(b -> b.getEffectId() == 5).count();
|
||||||
if (tmpCount > 1) {
|
if (tmpCount >= 1) {
|
||||||
tmpIcons = tmpIcons+(3*tmpCount);
|
tmpIcons = tmpIcons+(3*tmpCount);
|
||||||
}
|
}
|
||||||
playerMap.put(player, tmpIcons);
|
playerMap.put(player, tmpIcons);
|
||||||
|
|||||||
Reference in New Issue
Block a user