From b3b8b12299c61b90b5b035ab9d13b1dca5105ca1 Mon Sep 17 00:00:00 2001 From: Lassier Antoine Date: Sat, 3 Feb 2018 18:16:12 +0100 Subject: [PATCH] Fix policy reminder popup with the future tech The policy reminder popup is no longer shown if the completed civic is Future Tech. Closes #274 --- Assets/UI/actionpanel.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Assets/UI/actionpanel.lua b/Assets/UI/actionpanel.lua index 81ec3b94..68307068 100644 --- a/Assets/UI/actionpanel.lua +++ b/Assets/UI/actionpanel.lua @@ -476,9 +476,12 @@ function CQUI_CheckPolicyCanBeChanged() if CQUI_PolicyReminderClosed or not CQUI_ShowPolicyReminder then return false end + + -- AURENCY : get the Index of the future tech + local futureCivicIndex = GameInfo["Civics"]["CIVIC_FUTURE_CIVIC"].Index local PRD:table = pPlayer:GetCulture() - if(PRD:CivicCompletedThisTurn() and not PRD:PolicyChangeMade()) then + if(PRD:CivicCompletedThisTurn() and PRD:GetCivicCompletedThisTurn() ~= futureCivicIndex and not PRD:PolicyChangeMade()) then return true end return false