From c365793c23d1a12d807c54d2dc4e2f45735ca5cc Mon Sep 17 00:00:00 2001 From: urnati Date: Mon, 27 Apr 2026 21:48:12 -0400 Subject: [PATCH] - Alts : Fix for gold disappearing --- Titan/Titan.lua | 6 +++--- Titan/TitanHistory.lua | 8 +++++++- TitanXP/TitanXP.lua | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Titan/Titan.lua b/Titan/Titan.lua index a35eeca..698b4ad 100644 --- a/Titan/Titan.lua +++ b/Titan/Titan.lua @@ -356,11 +356,11 @@ end local function SetToonLogout(toon) -- New Dec 2025 Collect some toon info for profile display - -- Unlikely to change on reload but... + -- Do NOT call any API routines here!! + -- WoW is shutting down and the return values are usually nil or wrong... + -- local toon_info = TitanSettings.Players[toon].Info - toon_info.gold_toon = GetMoney() - local now = _G.time() toon_info.logout = now toon_info.logoutStr = TitanUtils_GetDateText(now, true) diff --git a/Titan/TitanHistory.lua b/Titan/TitanHistory.lua index c1298e1..24a12f0 100644 --- a/Titan/TitanHistory.lua +++ b/Titan/TitanHistory.lua @@ -11,9 +11,15 @@ These are in a seperate file to local recent_changes = { { version = "9.2.2", - when = "2026/04/23", + when = "2026/04/28", topics = { { + topic = "Alts", + lines = { + "Fix Gold value disappearing from tooltip on logout", + }, + }, + { topic = "Gold", lines = { "Fix tooltip for All Servers - special thanks to Liefwing for the code!", diff --git a/TitanXP/TitanXP.lua b/TitanXP/TitanXP.lua index ec340a7..0248963 100644 --- a/TitanXP/TitanXP.lua +++ b/TitanXP/TitanXP.lua @@ -128,7 +128,7 @@ end -- Override ChatFrame_DisplayTimePlayed used by RequestTimePlayed(). -- TIME_PLAYED_MSG used to send response. local function RefreshPlayed() - TitanUtils_GetTimePlayed() + TitanUtils_GetTimePlayed("XP") end ---local Display the plugin on selected Titan bar; register events; start timer; and init vars -- 1.7.9.5