Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- GrimReaper.lua 2011-05-10 22:56:02.000000000 +0200
- +++ GrimReaper.lua 2011-07-03 12:28:19.586645222 +0200
- @@ -548,7 +548,7 @@
- local groupMask = 0x007 -- ditto - 0x107
- -- COMBAT_LOG_EVENT_UNFILTERED
- -function module:COMBAT_LOG_EVENT_UNFILTERED(e, timestamp, event, _, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags, ...)
- +function module:COMBAT_LOG_EVENT_UNFILTERED(e, timestamp, event, _, srcGUID, srcName, srcFlags, srcFlags2, dstGUID, dstName, dstFlags, ...)
- local ev = module.eventList[event]
- if (ev ~= nil) then
- if (UnitInRaid(dstName) or UnitInParty(dstName)) then -- flags check fails if player's MC'd - band(dstFlags, groupMask) ~= 0) then
- @@ -563,10 +563,10 @@
- end
- if (self.lastUnit and UnitGUID(self.lastUnit) == dstGUID) then
- - if (self:OptionalFilters(timestamp, event, _, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags, ...)) then
- + if (self:OptionalFilters(timestamp, event, _, srcGUID, srcName, srcFlags, srcFlags2, dstGUID, dstName, dstFlags, ...)) then
- if (self.offset == 0) then
- -- Only update if we're at the bottom
- - self:Tip(timestamp, event, _, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags, ...)
- + self:Tip(timestamp, event, _, srcGUID, srcName, srcFlags, srcFlags2, dstGUID, dstName, dstFlags, ...)
- end
- --if (self.offset > 0 or (self.shownLines and self.shownLines < db.lines)) then
- @@ -1157,7 +1157,7 @@
- -- MakeCombatLogLine
- function module:MakeCombatLogLine(a, report)
- --local msg = CombatLog_OnEvent(Blizzard_CombatLog_CurrentSettings, unpack(a)) unpack() stops at nils.. -.-
- - local msg = CombatLog_OnEvent(Blizzard_CombatLog_CurrentSettings, a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9], a[10], a[11], a[12], a[13], a[14], a[15], a[16], a[17], a[18], a[19], a[20], a[21])
- + local msg = CombatLog_OnEvent(Blizzard_CombatLog_CurrentSettings, a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9], a[10], a[11], a[12], a[13], a[14], a[15], a[16], a[17], a[18], a[19], a[20], a[21], a[22], a[23])
- if (report) then
- -- Remove colour codes
- msg = msg:gsub("|c[0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f]", ""):gsub("|r", "")
- @@ -1649,7 +1649,7 @@
- end
- -- SWING_DAMAGE
- -function module:SWING_DAMAGE(frame, amount, overkill, school, resisted, blocked, absorbed, critical, glancing, crushing)
- +function module:SWING_DAMAGE(frame, mistery, amount, overkill, school, resisted, blocked, absorbed, critical, glancing, crushing)
- frame.a.amount = amount - overkill
- AddAmount(frame.text, amount, resisted, blocked, absorbed, crushing, school)
- GetModifier(frame, critical, glancing, crushing)
- @@ -1660,7 +1660,7 @@
- frame.text:SetTextColor(unpack(specialColour))
- end
- -function module:SPELL_DAMAGE(frame, spellId, spellName, spellSchool, amount, overkill, school, resisted, blocked, absorbed, critical, glancing, crushing)
- +function module:SPELL_DAMAGE(frame, spellId, spellName, spellSchool, mistery, amount, overkill, school, resisted, blocked, absorbed, critical, glancing, crushing)
- frame.a.amount = amount - overkill
- AddAmount(frame.text, amount, resisted, blocked, absorbed, crushing, school, spellSchool)
- GetModifier(frame, critical, glancing, crushing)
- @@ -1669,7 +1669,7 @@
- frame.a.harmSchool = spellSchool
- end
- -function module:SPELL_MISSED(frame, spellId, spellName, spellSchool, missType, amountMissed, overkill, school, resisted, blocked, absorbed, critical, glancing, crushing)
- +function module:SPELL_MISSED(frame, spellId, spellName, spellSchool, mistery, missType, amountMissed, overkill, school, resisted, blocked, absorbed, critical, glancing, crushing)
- local miss = _G["ACTION_SPELL_MISSED_"..missType]
- if (not miss) then
- if (absorbed) then
- @@ -1690,7 +1690,7 @@
- frame.a.harmSchool = spellSchool
- end
- -function module:SPELL_HEAL(frame, spellId, spellName, spellSchool, amount, overhealing, absorbed, critical)
- +function module:SPELL_HEAL(frame, spellId, spellName, spellSchool, mistery, amount, overhealing, absorbed, critical)
- frame.a.amount = amount - overhealing
- frame.text:SetFormattedText("+%d", amount)
- frame.text:SetTextColor(unpack(healColour))
- @@ -1700,7 +1700,7 @@
- frame.a.helpSchool = spellSchool
- end
- -function module:SPELL_AURA_DISPELLED(frame, spellId, spellName, spellSchool, extraSpellId, extraSpellName, extraSpellSchool, auraType)
- +function module:SPELL_AURA_DISPELLED(frame, spellId, spellName, spellSchool, mistery, extraSpellId, extraSpellName, extraSpellSchool, auraType)
- local srcFlags = frame.a[6]
- local srcName = frame.a[5]
- local srcGUID = frame.a[4]
- @@ -1720,7 +1720,7 @@
- frame.a.harmSchool = extraSpellSchool
- end
- -function module:SPELL_AURA_APPLIED(frame, spellId, spellName, spellSchool, auraType)
- +function module:SPELL_AURA_APPLIED(frame, mistery, spellId, spellName, spellSchool, auraType)
- local event = frame.a[2]
- frame.text:SetFormattedText("%s%s", event == "SPELL_AURA_APPLIED" and "++" or "--", spellName)
- local colour
- @@ -1748,7 +1748,7 @@
- frame.a.spellName = spellName
- end
- -function module:DAMAGE_SHIELD(frame, spellId, spellName, spellSchool, amount, overkill, school, resisted, blocked, absorbed, critical, glancing, crushing)
- +function module:DAMAGE_SHIELD(frame, spellId, spellName, spellSchool, mistery, amount, overkill, school, resisted, blocked, absorbed, critical, glancing, crushing)
- frame.a.amount = amount - overkill
- frame.text:SetFormattedText("DS -%d", amount)
- GetModifier(frame, critical, glancing, crushing)
- @@ -1756,7 +1756,7 @@
- frame.a.harmSchool = spellSchool
- end
- -function module:ENVIRONMENTAL_DAMAGE(frame, environmentalType, amount, overkill, school, resisted, blocked, absorbed, critical, glancing, crushing)
- +function module:ENVIRONMENTAL_DAMAGE(frame, environmentalType, mistery, amount, overkill, school, resisted, blocked, absorbed, critical, glancing, crushing)
- local spellName = _G["ACTION_ENVIRONMENTAL_DAMAGE_"..environmentalType]
- if (resisted or blocked or absorbed) then
- local prefix = format("%s%s%s", resisted and "r" or "", blocked and "b" or "", absorbed and "a" or "")
- @@ -1777,7 +1777,7 @@
- module.SPELL_AURA_STOLEN = module.SPELL_AURA_DISPELLED
- module.SPELL_AURA_REMOVED = module.SPELL_AURA_APPLIED
- -function module:AddLine(timestamp, event, _, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags, ...)
- +function module:AddLine(timestamp, event, _, srcGUID, srcName, srcFlags, srcFlags2, dstGUID, dstName, dstFlags, ...)
- line = line + 1
- local att = self.attachment
- local frame = att.frames[line]
- @@ -1786,11 +1786,11 @@
- end
- --local color, missType
- - --local spellId, spellName, spellSchool, amount, school, resisted, blocked, absorbed, critical, glancing, crushing, overkill, overhealing
- + --local spellId, spellName, spellSchool, mistery, amount, school, resisted, blocked, absorbed, critical, glancing, crushing, overkill, overhealing
- local ftext = frame.text
- frame.a = del(frame.a)
- - frame.a = new(timestamp, event, _, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags, ...)
- + frame.a = new(timestamp, event, _, srcGUID, srcName, srcFlags, srcFlags2, dstGUID, dstName, dstFlags, ...)
- local f = self[event]
- if (f) then
- @@ -2033,7 +2033,7 @@
- end
- -- OptionalFilters
- -function module:OptionalFilters(timestamp, event, _, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags, ...)
- +function module:OptionalFilters(timestamp, event, _, srcGUID, srcName, srcFlags, srcFlags2, dstGUID, dstName, dstFlags, ...)
- if (event == "SPELL_ENERGIZE") then
- return false -- Never want this
- end
- @@ -2073,7 +2073,7 @@
- local gotValid = 0
- while (true) do
- local color
- - local timestamp, event, _, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags = CombatLogGetCurrentEntry()
- + local timestamp, event, _, srcGUID, srcName, srcFlags, srcFlags2, dstGUID, dstName, dstFlags, dstFlags2 = CombatLogGetCurrentEntry()
- if (dstName == unitName) then
- if (self:OptionalFilters(CombatLogGetCurrentEntry())) then
- if (not self.firstTimeStamp) then
- @@ -2216,7 +2216,7 @@
- -- Tip
- --function module:Tip(unit, tooltip)
- -function module:Tip(timestamp, event, _, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags, ...)
- +function module:Tip(timestamp, event, _, srcGUID, srcName, srcFlags, srcFlags2, dstGUID, dstName, dstFlags, ...)
- local prevUnit = self.lastUnit
- local unit, tooltip
- if (type(timestamp) == "number") then
- @@ -2267,7 +2267,7 @@
- if (timestamp and self.offset == 0) then
- local shown = self:ShuffleListUpward(timestamp)
- - self:AddLine(timestamp, event, _, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags, ...)
- + self:AddLine(timestamp, event, _, srcGUID, srcName, srcFlags, srcFlags2, dstGUID, dstName, dstFlags, ...)
- line = shown + 1
- self:DoHealth()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement