Skip to content

Commit

Permalink
Re-making the commit for reported issues on classic wow
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed May 28, 2019
1 parent 7c9a395 commit 6069094
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/parser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions functions/slash.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
10 changes: 9 additions & 1 deletion startup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 6069094

Please sign in to comment.