From 485ebc962520affe91293cb97eaaced8101016e3 Mon Sep 17 00:00:00 2001
From: otowakotori <806682153@qq.com>
Date: Sat, 21 Mar 2020 11:18:52 +0800
Subject: [PATCH] Solipsism threshold fixes
 http://forums.te4.org/viewtopic.php?f=42&t=50288

---
 game/modules/tome/data/talents/psionic/solipsism.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/game/modules/tome/data/talents/psionic/solipsism.lua b/game/modules/tome/data/talents/psionic/solipsism.lua
index 8d06fb78ca..e70c48bae4 100644
--- a/game/modules/tome/data/talents/psionic/solipsism.lua
+++ b/game/modules/tome/data/talents/psionic/solipsism.lua
@@ -35,8 +35,8 @@ newTalent{
 		return 100 - (100 - talentmod)/lifemod, 1-1/lifemod, talentmod
 	end,
 
-	on_levelup_close = function(self, t)
-		if self:getTalentLevelRaw(t) == 1 then
+	on_levelup_close = function(self, t, lvl, old_lvl, lvl_raw, old_lvl_raw)
+		if old_lvl_raw == 0 and lvl_raw >= 1 then
 			self.inc_resource_multi.psi = (self.inc_resource_multi.psi or 0) + 0.5
 			self.inc_resource_multi.life = (self.inc_resource_multi.life or 0) - 0.25
 			self.life_rating = math.ceil(self.life_rating/2)
-- 
GitLab