From 842b6f27a118a6314b2e6008c408b24ba8c076ac Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Wed, 17 Mar 2021 19:57:33 -0300 Subject: [PATCH] Added Reset Overall Data on Torghast --- functions/profiles.lua | 1 + startup.lua | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/functions/profiles.lua b/functions/profiles.lua index 3cccc430..65aa89cd 100644 --- a/functions/profiles.lua +++ b/functions/profiles.lua @@ -970,6 +970,7 @@ local default_profile = { overall_flag = 0x10, overall_clear_newboss = true, overall_clear_newchallenge = true, + overall_clear_newtorghast = true, overall_clear_logout = false, data_cleanup_logout = false, close_shields = false, diff --git a/startup.lua b/startup.lua index 19b4d788..fb304274 100644 --- a/startup.lua +++ b/startup.lua @@ -518,6 +518,19 @@ function Details:StartMeUp() --I'll never stop! _detalhes.tabela_overall = _detalhes.combate:NovaTabela() end + --wipe overall on torghast - REMOVE ON 10.0 + local torghastTracker = CreateFrame("frame") + torghastTracker:RegisterEvent("JAILERS_TOWER_LEVEL_UPDATE") + torghastTracker:SetScript("OnEvent", function(self, event, level, towerType) + print(self, event, level, towerType) + if (level == 1) then + if (Details.overall_clear_newtorghast) then + Details.historico:resetar_overall() + Details:Msg ("overall data are now reset.") --localize-me + end + end + end) + function Details:InstallOkey() return true end