]> WPIA git - gigi.git/commitdiff
Upd: nucleus assurance does only maxpoints f2f-points
authorFelix Dörre <felix@dogcraft.de>
Fri, 6 May 2016 11:09:05 +0000 (13:09 +0200)
committerFelix Dörre <felix@dogcraft.de>
Fri, 6 May 2016 11:09:05 +0000 (13:09 +0200)
src/org/cacert/gigi/util/Notary.java

index c3a889ab4ac12a6ed5a3ce763a002c23df800083..7cb15aad203dc14619143dfd442b238221c28b62 100644 (file)
@@ -197,7 +197,7 @@ public class Notary {
     private static void assureNucleus(User assurer, User assuree, int awarded, String location, String date) throws GigiApiException {
         may(assurer, assuree, AssuranceType.NUCLEUS);
         // Do up to 35 points as f2f
-        int f2fPoints = Math.min(35, awarded);
+        int f2fPoints = Math.min(assurer.getMaxAssurePoints(), awarded);
         assureF2F(assurer, assuree, f2fPoints, location, date);
 
         awarded -= f2fPoints;