a6f604a253
- Time Line (plugin): added options to change the background color and scale. - Raid Check (plugin): its window is now 'always on top'. - Accuracy adjustments on overheal of Divine Aegis and Illuminated Healing. - Removed healthstone from cooldown list, added Nature's Vigil. - Enemies display now shows damage taken instead of damage done. - Tooltip for enemies display now also show damage and healing done by the enemy. - Added an option under miscellaneous to show neutral and hostile creatures on damage taken display. - Added an option to ignore nicknames and always use character names. - Enabling the display icon on title bar now makes the title text automatically move slightly to right. - Fixed issue with skin changing when the window has the statusbar enabled.
112 lines
2.9 KiB
Lua
112 lines
2.9 KiB
Lua
-- heal ability file
|
|
|
|
local _detalhes = _G._detalhes
|
|
local _
|
|
|
|
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
--> constants
|
|
|
|
local alvo_da_habilidade = _detalhes.alvo_da_habilidade
|
|
local habilidade_cura = _detalhes.habilidade_cura
|
|
local container_combatentes = _detalhes.container_combatentes
|
|
local container_heal_target = _detalhes.container_type.CONTAINER_HEALTARGET_CLASS
|
|
local container_playernpc = _detalhes.container_type.CONTAINER_PLAYERNPC
|
|
|
|
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
--> internals
|
|
|
|
function habilidade_cura:NovaTabela (id, link)
|
|
|
|
local _newHealSpell = {
|
|
|
|
id = id,
|
|
counter = 0,
|
|
|
|
--> totals
|
|
total = 0,
|
|
totalabsorb = 0,
|
|
absorbed = 0,
|
|
overheal = 0,
|
|
|
|
--> multistrike
|
|
m_amt = 0,
|
|
m_healed = 0,
|
|
m_crit = 0,
|
|
|
|
--> normal hits
|
|
n_min = 0,
|
|
n_max = 0,
|
|
n_amt = 0,
|
|
n_curado = 0,
|
|
|
|
--> critical hits
|
|
c_min = 0,
|
|
c_max = 0,
|
|
c_amt = 0,
|
|
c_curado = 0,
|
|
|
|
--> targets containers
|
|
targets = {},
|
|
targets_overheal = {},
|
|
targets_absorbs = {}
|
|
}
|
|
|
|
return _newHealSpell
|
|
end
|
|
|
|
function habilidade_cura:Add (serial, nome, flag, amount, who_nome, absorbed, critical, overhealing, is_shield, multistrike)
|
|
|
|
amount = amount or 0
|
|
self.total = self.total + amount
|
|
self.targets [nome] = (self.targets [nome] or 0) + amount
|
|
|
|
if (multistrike) then
|
|
self.m_amt = self.m_amt + 1
|
|
self.m_healed = self.m_healed + amount
|
|
|
|
if (critical) then
|
|
self.m_crit = self.m_crit + 1
|
|
end
|
|
else
|
|
|
|
self.counter = self.counter + 1
|
|
|
|
if (absorbed and absorbed > 0) then
|
|
self.absorbed = self.absorbed + absorbed
|
|
end
|
|
|
|
if (overhealing and overhealing > 0) then
|
|
self.overheal = self.overheal + overhealing
|
|
self.targets_overheal [nome] = (self.targets_overheal [nome] or 0) + overhealing
|
|
end
|
|
|
|
if (is_shield) then
|
|
self.totalabsorb = self.totalabsorb + amount
|
|
self.targets_absorbs [nome] = (self.targets_absorbs [nome] or 0) + amount
|
|
end
|
|
|
|
if (critical) then
|
|
self.c_curado = self.c_curado+amount --> amount é o total de dano
|
|
self.c_amt = self.c_amt+1 --> amount é o total de dano
|
|
if (amount > self.c_max) then
|
|
self.c_max = amount
|
|
end
|
|
if (self.c_min > amount or self.c_min == 0) then
|
|
self.c_min = amount
|
|
end
|
|
else
|
|
self.n_curado = self.n_curado+amount
|
|
self.n_amt = self.n_amt+1
|
|
if (amount > self.n_max) then
|
|
self.n_max = amount
|
|
end
|
|
if (self.n_min > amount or self.n_min == 0) then
|
|
self.n_min = amount
|
|
end
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|