summaryrefslogtreecommitdiff
path: root/src/main/java/org/luxons/sevenwonders
diff options
context:
space:
mode:
authorJoffrey BION <joffrey.bion@gmail.com>2017-01-14 13:31:02 +0100
committerJoffrey BION <joffrey.bion@gmail.com>2017-01-14 13:31:02 +0100
commitf3dde990ca7b9b072298185666116668760cc9f6 (patch)
tree6e53c7a6ed6d4eaeb8713b6f447a1572d87f5795 /src/main/java/org/luxons/sevenwonders
parentAdd test for Discount effect (diff)
downloadseven-wonders-f3dde990ca7b9b072298185666116668760cc9f6.tar.gz
seven-wonders-f3dde990ca7b9b072298185666116668760cc9f6.tar.bz2
seven-wonders-f3dde990ca7b9b072298185666116668760cc9f6.zip
Add test for SpecialAbilityActivation effect
Diffstat (limited to 'src/main/java/org/luxons/sevenwonders')
-rw-r--r--src/main/java/org/luxons/sevenwonders/game/effects/SpecialAbility.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/luxons/sevenwonders/game/effects/SpecialAbility.java b/src/main/java/org/luxons/sevenwonders/game/effects/SpecialAbility.java
index 02f80714..5de87784 100644
--- a/src/main/java/org/luxons/sevenwonders/game/effects/SpecialAbility.java
+++ b/src/main/java/org/luxons/sevenwonders/game/effects/SpecialAbility.java
@@ -32,7 +32,7 @@ public enum SpecialAbility {
if (copiedGuild == null) {
throw new IllegalStateException("The copied Guild has not been chosen, cannot compute points");
}
- return copiedGuild.getEffects().stream().mapToInt(e -> computePoints(table, playerIndex)).sum();
+ return copiedGuild.getEffects().stream().mapToInt(e -> e.computePoints(table, playerIndex)).sum();
}
};
bgstack15