From f3dde990ca7b9b072298185666116668760cc9f6 Mon Sep 17 00:00:00 2001 From: Joffrey BION Date: Sat, 14 Jan 2017 13:31:02 +0100 Subject: Add test for SpecialAbilityActivation effect --- src/main/java/org/luxons/sevenwonders/game/effects/SpecialAbility.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/org/luxons/sevenwonders') 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(); } }; -- cgit