diff --git a/core/parser.lua b/core/parser.lua index aceae985..4345d3ae 100644 --- a/core/parser.lua +++ b/core/parser.lua @@ -3636,7 +3636,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1 _table_insert (_current_combat.last_events_tables, #_current_combat.last_events_tables+1, t) --> check if this is a mythic+ run - local mythicLevel = C_ChallengeMode.GetActiveKeystoneInfo() + local mythicLevel = C_ChallengeMode and C_ChallengeMode.GetActiveKeystoneInfo() --classic wow doesn't not have C_ChallengeMode API if (mythicLevel and type (mythicLevel) == "number" and mythicLevel >= 2) then --several checks to be future proof --> more checks for integrity if (_detalhes.tabela_overall and _detalhes.tabela_overall.last_events_tables) then diff --git a/functions/slash.lua b/functions/slash.lua index 358b6057..4b4eb52e 100644 --- a/functions/slash.lua +++ b/functions/slash.lua @@ -164,6 +164,10 @@ function SlashCmdList.DETAILS (msg, editbox) elseif (command == Loc ["STRING_SLASH_CHANGES"] or command == Loc ["STRING_SLASH_CHANGES_ALIAS1"] or command == Loc ["STRING_SLASH_CHANGES_ALIAS2"] or command == "news" or command == "updates") then _detalhes:OpenNewsWindow() + elseif (command == "discord") then + _detalhes:CopyPaste ("https://discord.gg/AGSzAZX") + + elseif (command == "debugwindow") then local window1 = Details:GetWindow(1) diff --git a/startup.lua b/startup.lua index 80ceb0c1..55614c34 100644 --- a/startup.lua +++ b/startup.lua @@ -339,7 +339,7 @@ function _G._detalhes:Start() local newFrame = CreateFrame ("frame", "DetailsMythicPlusFrame", UIParent) newFrame.DevelopmentDebug = false - --disabnling the mythic+ feature if the user is playing in wow classic + --disabling the mythic+ feature if the user is playing in wow classic if (not DetailsFramework.IsClassicWow()) then newFrame:RegisterEvent ("CHALLENGE_MODE_START") newFrame:RegisterEvent ("CHALLENGE_MODE_COMPLETED") @@ -1875,6 +1875,14 @@ function _G._detalhes:Start() --> override the overall data flag on this release only (remove on the next release) --Details.overall_flag = 0x10 + + --show warning message about classic beta + + if (not DetailsFramework.IsClassicWow()) then + print ("|CFFFFFF00[Tercioo]: this version of Details! is being ported to Classic WoW, bugs may appear here on BfA, report at Discord (/details discord).") + else + print ("|CFFFFFF00[Tercioo]: thanks for testing Details! Damage Meter for Classic WoW, report bugs at Discord (/details discord).") + end end