Skip to content

Commit

Permalink
Fix paladin blessings in raid
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyball committed Aug 7, 2016
1 parent cf15b34 commit 5c0e86d
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions modules/Paladin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,17 @@ function dataobj:Scan(enteringcombat)
self.player = nil
return
end
local count = 0
local count = self:Test("player")
-- We can't scan the same unit twice or we'll get inaccurate results
if IsInRaid() then
for k, _ in pairs(raidunits) do
count = count + self:Test(k)
if count >= 3 then break end
end
else
count = self:Test("player")
if IsInGroup() then
for k, _ in pairs(partyunits) do
count = count + self:Test(k)
if count >= 3 then break end
end
elseif IsInGroup() then
for k, _ in pairs(partyunits) do
count = count + self:Test(k)
if count >= 3 then break end
end
end
if count < 3 then
Expand Down

0 comments on commit 5c0e86d

Please sign in to comment.