From 373c7ee942eb040e2a51c7cb676233eafc0e16fc Mon Sep 17 00:00:00 2001
From: DarkGod <darkgod@net-core.org>
Date: Sat, 18 Feb 2017 13:46:22 +0100
Subject: [PATCH] fixed cornacs bonus points

---
 game/modules/tome/class/Actor.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/game/modules/tome/class/Actor.lua b/game/modules/tome/class/Actor.lua
index 5b446e499b..d077a37e23 100644
--- a/game/modules/tome/class/Actor.lua
+++ b/game/modules/tome/class/Actor.lua
@@ -3335,8 +3335,8 @@ function _M:levelup()
 		if self.level % 5 == 0 then self.unused_talents = self.unused_talents + 1 end
 		if self.level % 5 == 0 then self.unused_generics = self.unused_generics - 1 end
 
-		if self.extra_talent_point_every and self.level % self.extra_talent_point_every then self.unused_talents = self.unused_talents + 1 end
-		if self.extra_generic_point_every and self.level % self.extra_generic_point_every then self.unused_generics = self.unused_generics + 1 end
+		if self.extra_talent_point_every and self.level % self.extra_talent_point_every == 0 then self.unused_talents = self.unused_talents + 1 end
+		if self.extra_generic_point_every and self.level % self.extra_generic_point_every == 0 then self.unused_generics = self.unused_generics + 1 end
 
 		-- At levels 10, 20 and 36 and then every 30 levels, we gain a new talent type
 		if self.level == 10 or self.level == 20 or self.level == 36 or (self.level > 50 and (self.level - 6) % 30 == 0) then
-- 
GitLab