Skip to content

Commit

Permalink
Fixed a few lua errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tdymel committed Mar 17, 2017
1 parent 02cff66 commit ca8c3ce
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DPSMate/DPSMate.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-- Global Variables
DPSMate = {}
DPSMate.VERSION = 103
DPSMate.VERSION = 104
DPSMate.LOCALE = GetLocale()
DPSMate.SYNCVERSION = DPSMate.VERSION..DPSMate.LOCALE
DPSMate.Parser = CreateFrame("Frame", nil, UIParent)
Expand Down
4 changes: 2 additions & 2 deletions DPSMate/DPSMate_Parser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -502,9 +502,9 @@ function DPSMate.Parser:GetPlayerValues()
DPSMatePlayer[1] = self.player
DPSMatePlayer[2] = playerclass
local _, fac = UnitFactionGroup("player")
if fac == "Alliance" then
if string.find(fac, "lliance") then
DPSMatePlayer[3] = 1
elseif fac == "Horde" then
elseif string.find(fac, "orde") then
DPSMatePlayer[3] = -1
end
DPSMatePlayer[4] = GetRealmName()
Expand Down
2 changes: 1 addition & 1 deletion DPSMate/Damage/DPSMate_DPS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function DPSMate.Modules.DPS:EvalTable(user, k, cbt)
local arr, cbet = DPSMate:GetMode(k)
cbt = cbt or cbet
if not arr[user[1]] then return end
if (user[5] and user[5] ~= DPSMate.L["unknown"] and arr[DPSMateUser[user[5]][1]]) and DPSMateSettings["mergepets"] and DPSMateUser[user[5]][1]~=user[1] then u={user[1],DPSMateUser[user[5]][1]} else u={user[1]} end
if (user and user[5] and user[5] ~= DPSMate.L["unknown"] and DPSMateUser[user[5]] and arr[DPSMateUser[user[5]][1]]) and DPSMateSettings["mergepets"] and DPSMateUser[user[5]][1]~=user[1] then u={user[1],DPSMateUser[user[5]][1]} else u={user[1]} end
for _, v in pairs(u) do
for cat, val in pairs(arr[v]) do
if (type(val) == "table" and cat~="i") then
Expand Down
2 changes: 1 addition & 1 deletion DPSMate/Damage/DPSMate_Damage.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function DPSMate.Modules.Damage:EvalTable(user, k)
local a, u, p, d, total, pet = {}, {}, {}, {}, 0, false
local arr = DPSMate:GetMode(k)
if not arr[user[1]] then return end
if (user[5] and user[5] ~= DPSMate.L["unknown"] and arr[DPSMateUser[user[5]][1]]) and DPSMateSettings["mergepets"] and DPSMateUser[user[5]][1]~=user[1] then u={user[1],DPSMateUser[user[5]][1]} else u={user[1]} end
if (user and user[5] and user[5] ~= DPSMate.L["unknown"] and DPSMateUser[user[5]] and arr[DPSMateUser[user[5]][1]]) and DPSMateSettings["mergepets"] and DPSMateUser[user[5]][1]~=user[1] then u={user[1],DPSMateUser[user[5]][1]} else u={user[1]} end
for _, v in pairs(u) do
for cat, val in pairs(arr[v]) do
if (type(val) == "table" and cat~="i") then
Expand Down

0 comments on commit ca8c3ce

Please sign in to comment.