Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spellId was always 0, changed GetSpellInfo-param to spellName #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions EavesDrop.lua
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ function EavesDrop:CombatEvent()
outtype, intype = "TSPELL", "PSPELL"
else
spellId, spellName, spellSchool, amount, overDamage, school, resisted, blocked, absorbed, critical, glancing, crushing = a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12
texture = select(3, GetSpellInfo(spellId))
texture = select(3, GetSpellInfo(spellName))
outtype, intype = "TSPELL", "PSPELL"
end
text = tostring(shortenValue(amount))
Expand Down Expand Up @@ -509,15 +509,15 @@ function EavesDrop:CombatEvent()
------------buff/debuff gain----------------
elseif etype == "BUFF" then
spellId, spellName, spellSchool, auraType, amount = a1, a2, a3, a4, a5
texture = select(3, GetSpellInfo(spellId))
texture = select(3, GetSpellInfo(spellName))
if toPlayer and db[auraType] then
self:DisplayEvent(INCOMING, self:ShortenString(spellName), texture, db["P"..auraType], message)
else return
end
------------buff/debuff lose----------------
elseif etype == "FADE" then
spellId, spellName, spellSchool, auraType, amount = a1, a2, a3, a4, a5
texture = select(3, GetSpellInfo(spellId))
texture = select(3, GetSpellInfo(spellName))
if toPlayer and db[auraType.."FADE"] then
self:DisplayEvent(INCOMING, self:ShortenString(spellName).." "..L["Fades"], texture, db["P"..auraType], message)
else return
Expand All @@ -526,7 +526,7 @@ function EavesDrop:CombatEvent()
elseif etype == "HEAL" then
spellId, spellName, spellSchool, amount, overHeal, absorbed, critical = a1, a2, a3, a4, a5, a6, a7
text = tostring(shortenValue(amount))
texture = select(3, GetSpellInfo(spellId))
texture = select(3, GetSpellInfo(spellName))

if toPlayer then
totHealingIn = totHealingIn + amount
Expand Down Expand Up @@ -560,7 +560,7 @@ function EavesDrop:CombatEvent()
tcolor = "TMELEE"
else
spellId, spellName, spellSchool, missType = a1, a2, a3, a4
texture = select(3, GetSpellInfo(spellId))
texture = select(3, GetSpellInfo(spellName))
tcolor = "TSPELL"
end
text = _G[missType]
Expand All @@ -577,7 +577,7 @@ function EavesDrop:CombatEvent()
elseif etype == "DRAIN" then
if (db["GAINS"]) then
spellId, spellName, spellSchool, amount, powerType, extraAmount = a1, a2, a3, a4, a5, a6
texture = select(3, GetSpellInfo(spellId))
texture = select(3, GetSpellInfo(spellName))
if toPlayer then
text = string_format("-%d %s", amount, string_nil(""))
color = db["PGAIN"]
Expand All @@ -597,7 +597,7 @@ function EavesDrop:CombatEvent()
elseif etype == "POWER" then
if (db["GAINS"]) then
spellId, spellName, spellSchool, amount, powerType = a1, a2, a3, a4, a5
texture = select(3, GetSpellInfo(spellId))
texture = select(3, GetSpellInfo(spellName))
if toPlayer then
if (amount < db["MFILTER"]) then return end
color = db["PGAIN"]
Expand Down Expand Up @@ -984,7 +984,7 @@ end
--Set last reflection
function EavesDrop:ParseReflect(timestamp, event, hideCaster, sourceGUID, sourceName, sourceFlags, sourceFlags2, destGUID, destName, destFlags, destFlags2, ...)
local spellId, spellName, spellSchool, amount, school, resisted, blocked, absorbed, critical, glancing, crushing = ...
local texture = select(3, GetSpellInfo(spellId))
local texture = select(3, GetSpellInfo(spellName))
local text = amount
local messsage = CombatLog_OnEvent(Blizzard_CombatLog_CurrentSettings, timestamp, event, hideCaster, sourceGUID, sourceName, sourceFlags, sourceFlags2, destGUID, destName, destFlags, destFlags2, ...)

Expand Down