Skip to content

Commit

Permalink
avoid lua errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bkader committed Aug 1, 2021
1 parent 4efef4a commit ce566e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Skada/Modules/Enemies.lua
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ Skada:AddLoadableModule("Enemy Damage Done", function(Skada, L)
icon = "Interface\\Icons\\spell_shadow_shadowbolt"
}

local damagemod = Skada:GetModule(L["Damage Taken"])
local damagemod = Skada:GetModule(L["Damage Taken"], true)
if damagemod then
enemymod.metadata = {click1 = damagemod:GetModule(L["Damage source list"], true)}
end
Expand Down
4 changes: 3 additions & 1 deletion Skada/Modules/Scroll.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
assert(Skada, "Skada not found!")

local bars = Skada:GetModule("BarDisplay", true)
if not bars then return end

local L = LibStub("AceLocale-3.0"):GetLocale("Skada", false)
local mod = Skada:NewModule(L["Scroll"])
local bars = Skada:GetModule("BarDisplay")

local db
local defaults = {
Expand Down

0 comments on commit ce566e4

Please sign in to comment.