- Added option to sent spell link instead of spell name for helpful spells when reporting a death.

This commit is contained in:
tercio
2014-08-01 16:08:29 -03:00
parent e61fe4ee01
commit 7c915efb63
7 changed files with 44 additions and 15 deletions
+6 -2
View File
@@ -272,7 +272,7 @@ end
--[1] true damage/ false heal [2] spellid [3] amount [4] time [5] current health [6] source
function atributo_misc:ReportSingleDeadLine (morte, instancia)
--
local barra = instancia.barras [morte.minha_barra]
local max_health = morte [5]
@@ -323,7 +323,11 @@ function atributo_misc:ReportSingleDeadLine (morte, instancia)
hp = 100
end
tinsert (report_array, {elapsed .. " ", spellname, " (" .. source .. ")", "+" .. _detalhes:ToK (amount) .. " (" .. hp .. "%) "})
if (_detalhes.report_heal_links) then
tinsert (report_array, {elapsed .. " ", spelllink, " (" .. source .. ")", "+" .. _detalhes:ToK (amount) .. " (" .. hp .. "%) "})
else
tinsert (report_array, {elapsed .. " ", spellname, " (" .. source .. ")", "+" .. _detalhes:ToK (amount) .. " (" .. hp .. "%) "})
end
end
end