diff --git a/Altoholic/Altoholic.lua b/Altoholic/Altoholic.lua index e5da91f..df3d083 100644 --- a/Altoholic/Altoholic.lua +++ b/Altoholic/Altoholic.lua @@ -338,7 +338,7 @@ function addon:OnEnable() -- CoA: use a Lua constant, not GetAddOnMetadata — TOC metadata is cached at game launch -- and does NOT refresh on /reload, so the .toc version looked stale ("still .18"). A Lua -- constant re-evaluates on every /reload, giving a truthful loaded-code version. Bump with the .toc. - AltoholicFrameName:SetText("Altoholic |cFFFFFFFF3.3.002b-coa.27|r") + AltoholicFrameName:SetText("Altoholic |cFFFFFFFF3.3.002b-coa.28|r") local realm = GetRealmName() local player = UnitName("player") diff --git a/Altoholic/Altoholic.toc b/Altoholic/Altoholic.toc index 16f5c1d..a62c10d 100644 --- a/Altoholic/Altoholic.toc +++ b/Altoholic/Altoholic.toc @@ -13,7 +13,7 @@ ## Author: Thaoky, Telkar-RG ## X-Edited-By: Exiles (Sub-Net) — florian.berthold@sub-net.at -## Version: 3.3.002b-coa.27 +## Version: 3.3.002b-coa.28 ## X-Category: Inventory, Tradeskill, Mail ## X-Localizations: enUS, frFR, zhCN, zhTW, deDE, koKR, esES, esMX, ruRU ## X-Website: http://wow.curse.com/downloads/wow-addons/details/altoholic.aspx diff --git a/DataStore_Achievements/DataStore_Achievements.lua b/DataStore_Achievements/DataStore_Achievements.lua index 9ab3ece..ebf0243 100644 --- a/DataStore_Achievements/DataStore_Achievements.lua +++ b/DataStore_Achievements/DataStore_Achievements.lua @@ -235,7 +235,8 @@ end -- *** EVENT HANDLERS *** function addon:PLAYER_ALIVE() -- print("DataStore_Achievements.lua") -- DEBUG 2025 07 21 - if not UnitIsGhost("player") then return end -- only scan if player released spirit and went to graveyard + if addon.coaScannedThisSession then return end -- CoA: scan once at login (was ghost-gated, so data never saved on a normal login - the cause of "data not saved") + addon.coaScannedThisSession = true ScanAllAchievements() ScanProgress() diff --git a/DataStore_Crafts/DataStore_Crafts.lua b/DataStore_Crafts/DataStore_Crafts.lua index 6c9d88e..35eed10 100644 --- a/DataStore_Crafts/DataStore_Crafts.lua +++ b/DataStore_Crafts/DataStore_Crafts.lua @@ -546,7 +546,8 @@ end -- *** Event Handlers *** local function OnPlayerAlive() -- print("DataStore_Crafts.lua") -- DEBUG 2025 07 21 - if not UnitIsGhost("player") then return end -- only scan if player released spirit and went to graveyard + if addon.coaScannedThisSession then return end -- CoA: scan once at login (was ghost-gated, so data never saved on a normal login - the cause of "data not saved") + addon.coaScannedThisSession = true ScanProfessionLinks() end diff --git a/DataStore_Pets/DataStore_Pets.lua b/DataStore_Pets/DataStore_Pets.lua index 4182863..cce3a72 100644 --- a/DataStore_Pets/DataStore_Pets.lua +++ b/DataStore_Pets/DataStore_Pets.lua @@ -46,7 +46,8 @@ end -- *** Event Handlers *** local function OnPlayerAlive() -- print("DataStore_Pets.lua") -- DEBUG 2025 07 21 - if not UnitIsGhost("player") then return end -- only scan if player released spirit and went to graveyard + if addon.coaScannedThisSession then return end -- CoA: scan once at login (was ghost-gated, so data never saved on a normal login - the cause of "data not saved") + addon.coaScannedThisSession = true ScanCompanions("CRITTER") ScanCompanions("MOUNT") diff --git a/DataStore_Quests/DataStore_Quests.lua b/DataStore_Quests/DataStore_Quests.lua index ca68a76..b354c1c 100644 --- a/DataStore_Quests/DataStore_Quests.lua +++ b/DataStore_Quests/DataStore_Quests.lua @@ -177,7 +177,8 @@ end -- *** Event Handlers *** local function OnPlayerAlive() -- print("DataStore_Quests.lua") -- DEBUG 2025 07 21 - if not UnitIsGhost("player") then return end -- only scan if player released spirit and went to graveyard + if addon.coaScannedThisSession then return end -- CoA: scan once at login (was ghost-gated, so data never saved on a normal login - the cause of "data not saved") + addon.coaScannedThisSession = true ScanQuests() end diff --git a/DataStore_Reputations/DataStore_Reputations.lua b/DataStore_Reputations/DataStore_Reputations.lua index f1bb674..6bf9584 100644 --- a/DataStore_Reputations/DataStore_Reputations.lua +++ b/DataStore_Reputations/DataStore_Reputations.lua @@ -177,7 +177,8 @@ end -- *** EVENT HANDLERS *** function addon:PLAYER_ALIVE() -- print("DataStore_Reputations.lua") -- DEBUG 2025 07 21 - if not UnitIsGhost("player") then return end -- only scan if player released spirit and went to graveyard + if addon.coaScannedThisSession then return end -- CoA: scan once at login (was ghost-gated, so data never saved on a normal login - the cause of "data not saved") + addon.coaScannedThisSession = true ScanReputations() end diff --git a/DataStore_Skills/DataStore_Skills.lua b/DataStore_Skills/DataStore_Skills.lua index 22b04b3..fa774f3 100644 --- a/DataStore_Skills/DataStore_Skills.lua +++ b/DataStore_Skills/DataStore_Skills.lua @@ -239,7 +239,8 @@ end -- *** EVENT HANDLERS *** function addon:PLAYER_ALIVE() -- print("DataStore_Skills.lua") -- DEBUG 2025 07 21 - if not UnitIsGhost("player") then return end -- only scan if player released spirit and went to graveyard + if addon.coaScannedThisSession then return end -- CoA: scan once at login (was ghost-gated, so data never saved on a normal login - the cause of "data not saved") + addon.coaScannedThisSession = true ScanSkills() end diff --git a/DataStore_Spells/DataStore_Spells.lua b/DataStore_Spells/DataStore_Spells.lua index 3b2e43c..e652d8d 100644 --- a/DataStore_Spells/DataStore_Spells.lua +++ b/DataStore_Spells/DataStore_Spells.lua @@ -105,7 +105,8 @@ end -- *** EVENT HANDLERS *** function addon:PLAYER_ALIVE() -- print("DataStore_Spells.lua") -- DEBUG 2025 07 21 - if not UnitIsGhost("player") then return end -- only scan if player released spirit and went to graveyard + if addon.coaScannedThisSession then return end -- CoA: scan once at login (was ghost-gated, so data never saved on a normal login - the cause of "data not saved") + addon.coaScannedThisSession = true ScanSpells() end diff --git a/DataStore_Stats/DataStore_Stats.lua b/DataStore_Stats/DataStore_Stats.lua index a230828..9c06e19 100644 --- a/DataStore_Stats/DataStore_Stats.lua +++ b/DataStore_Stats/DataStore_Stats.lua @@ -156,7 +156,8 @@ end -- *** EVENT HANDLERS *** function addon:PLAYER_ALIVE() -- print("DataStore_Stats.lua") -- DEBUG 2025 07 21 - if not UnitIsGhost("player") then return end -- only scan if player released spirit and went to graveyard + if addon.coaScannedThisSession then return end -- CoA: scan once at login (was ghost-gated, so data never saved on a normal login - the cause of "data not saved") + addon.coaScannedThisSession = true ScanStats() end diff --git a/DataStore_Talents/DataStore_Talents.lua b/DataStore_Talents/DataStore_Talents.lua index f979fb2..3de4ddb 100644 --- a/DataStore_Talents/DataStore_Talents.lua +++ b/DataStore_Talents/DataStore_Talents.lua @@ -419,7 +419,8 @@ end -- *** EVENT HANDLERS *** function addon:PLAYER_ALIVE() -- print("DataStore_Talents.lua") -- DEBUG 2025 07 21 - if not UnitIsGhost("player") then return end -- only scan if player released spirit and went to graveyard + if addon.coaScannedThisSession then return end -- CoA: scan once at login (was ghost-gated, so data never saved on a normal login - the cause of "data not saved") + addon.coaScannedThisSession = true ScanTalents() ScanTalentReference()