Added Reset Overall Data on Torghast

This commit is contained in:
Tercio Jose
2021-03-17 19:57:33 -03:00
parent f0554a6336
commit 842b6f27a1
2 changed files with 14 additions and 0 deletions
+1
View File
@@ -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,
+13
View File
@@ -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