diff options
author | Joffrey BION <joffrey.bion@gmail.com> | 2017-01-14 13:31:02 +0100 |
---|---|---|
committer | Joffrey BION <joffrey.bion@gmail.com> | 2017-01-14 13:31:02 +0100 |
commit | f3dde990ca7b9b072298185666116668760cc9f6 (patch) | |
tree | 6e53c7a6ed6d4eaeb8713b6f447a1572d87f5795 /src/main/java/org/luxons/sevenwonders | |
parent | Add test for Discount effect (diff) | |
download | seven-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.java | 2 |
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(); } }; |