- added new sub attribute: buff uptime.

- minor bug fixes when updating energy attribute.
- fixed issue were changing attributes clicking directly on attribute name.
- some fixes to prevent unknown pet owner name.
- pet scan now is more smooth and scheduled to 1 scan per second.
- disabling auras doesn't disable healing absorbs any more.
- friendly fire doesn't check pets any more, only players.
- fixed problem were pet damage on target isn't added to the owner target.
- fixed issue with cooldown refresh which isn't tracked before.
- added cooldown to death log and also the time of last cooldown used.
- added command /details worldboss which runs the macro showing world boss killed.
- added command /details updates showing change log window.
- added absorbs for monk 2P, shammy 2P and Stolen Relic of Zuldazar trinket.
- added a change log inside the addon showing latest changes.
This commit is contained in:
Tercio
2013-10-23 19:26:15 -02:00
parent a748a2aa2d
commit 65de37e962
30 changed files with 1082 additions and 284 deletions
+7 -3
View File
@@ -30,7 +30,7 @@ do
--[[ MISC ]]
misc = 4, --> identifier
[4] = 6, --> sub attributes
[4] = 7, --> sub attributes
--[[ CUSTOM ]]
custom = 5,
@@ -130,6 +130,7 @@ do
dispell = 4,
deaths = 5,
cooldowns_defensive = 6,
buff_uptime = 7,
lista = { --[[ String Names ]]
Loc ["STRING_ATTRIBUTE_MISC_CCBREAK"],
Loc ["STRING_ATTRIBUTE_MISC_RESS"],
@@ -137,6 +138,7 @@ do
Loc ["STRING_ATTRIBUTE_MISC_DISPELL"],
Loc ["STRING_ATTRIBUTE_MISC_DEAD"],
Loc ["STRING_ATTRIBUTE_MISC_DEFENSIVE_COOLDOWNS"],
Loc ["STRING_ATTRIBUTE_MISC_BUFF_UPTIME"],
},
icones = {
{"Interface\\AddOns\\Details\\images\\atributos_icones_misc", {0, .125, 0, 1}},
@@ -144,9 +146,10 @@ do
{"Interface\\AddOns\\Details\\images\\atributos_icones_misc", {.25, .375, 0, 1}},
{"Interface\\AddOns\\Details\\images\\atributos_icones_misc", {.375, .5, 0, 1}},
{"Interface\\AddOns\\Details\\images\\atributos_icones_misc", {.5, .625, 0, 1}},
{"Interface\\AddOns\\Details\\images\\atributos_icones_misc", {.625, 0.75, 0, 1}}
{"Interface\\AddOns\\Details\\images\\atributos_icones_misc", {.625, 0.75, 0, 1}},
{"Interface\\AddOns\\Details\\images\\atributos_icones_misc", {0.75, 0.875, 0, 1}}
},
internal = {"cc_break", "ress", "interrupt", "dispell", "dead", "cooldowns_defensive"}
internal = {"cc_break", "ress", "interrupt", "dispell", "dead", "cooldowns_defensive", "buff_uptime"}
}
}
@@ -157,6 +160,7 @@ do
function _detalhes:GetSubAttributeName (attribute, subAttribute)
if (attribute == 5) then
local CustomObject = _detalhes.custom [subAttribute]
-- ??
return CustomObject.name
end
return _detalhes.sub_atributos [attribute].lista [subAttribute]
+9 -2
View File
@@ -97,7 +97,8 @@ function _detalhes:SaveDataOnLogout()
_detalhes_database.custom = _detalhes.custom
--> version
_detalhes_database.last_realversion = _detalhes.realversion
_detalhes_database.last_realversion = _detalhes.realversion --> core number
_detalhes_database.last_version = _detalhes.userversion --> version
-- On Account
@@ -158,7 +159,9 @@ end --]]
_detalhes.tabela_pets = _detalhes_database.tabela_pets or _detalhes.container_pets:NovoContainer() -- pets
--> version
_detalhes.last_realversion = _detalhes_database.last_realversion or _detalhes.realversion
_detalhes.last_realversion = _detalhes_database.last_realversion or _detalhes.realversion --> core
_detalhes.last_version = _detalhes_database.last_version or "v1.0.0" --> version
if (_detalhes.last_realversion < _detalhes.realversion) then
--> details was been hard upgraded
_detalhes.tabela_historico = _detalhes.historico:NovoHistorico()
@@ -167,6 +170,10 @@ end --]]
_detalhes.tabela_vigente = _detalhes.combate:NovaTabela (_, _detalhes.tabela_overall)
end
if (_detalhes.last_version ~= _detalhes.userversion) then
_detalhes.is_version_first_run = true
end
--> re-build all indexes and metatables
_detalhes:RestauraMetaTables()
+41 -5
View File
@@ -69,7 +69,17 @@ function SlashCmdList.DETAILS (msg, editbox)
print (_detalhes:GetInstance (lower_instance))
_detalhes:OpenOptionsWindow (_detalhes:GetInstance (lower_instance))
end
elseif (command == Loc ["STRING_SLASH_WORLDBOSS"]) then
--local questIds = {Galleon = 32098, Sha = 32099, Oondasta = 32519, Celestials = 33117, Ordos = 33118, Nalak = 32518}
local questIds = {{"The Celestials", 33117}, {"Ordos", 33118}, {"Nalak", 32518}, {"Oondasta", 32519}, {"Salyis's Warband (Galleon)", 32098}, {"Sha of Anger", 32099}}
for _, _table in pairs (questIds) do
print (format ("%s: \124cff%s\124r", _table [1], IsQuestFlaggedCompleted (_table [2]) and "ff0000"..Loc ["STRING_KILLED"] or "00ff00"..Loc ["STRING_ALIVE"]))
end
elseif (command == Loc ["STRING_SLASH_CHANGES"]) then
_detalhes:OpenNewsWindow()
-------- debug ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
@@ -99,7 +109,7 @@ function SlashCmdList.DETAILS (msg, editbox)
elseif (msg == "raid") then
local player, realm = "Marleyieu", "Azralon"
local player, realm = "Ditador", "Azralon"
local actorName
if (realm ~= GetRealmName()) then
@@ -110,7 +120,7 @@ function SlashCmdList.DETAILS (msg, editbox)
print (actorName)
local guid = _detalhes:FindGUIDFromName ("Marleyieu")
local guid = _detalhes:FindGUIDFromName ("Ditador")
print (guid)
for i = 1, GetNumGroupMembers()-1, 1 do
@@ -234,6 +244,7 @@ function SlashCmdList.DETAILS (msg, editbox)
}
_detalhes.capture_current = _detalhes.capture_real
_detalhes:CaptureRefresh()
print (Loc ["STRING_DETAILS1"] .. "capture has been reseted.")
--> debug
elseif (msg == "opened") then
@@ -317,10 +328,33 @@ function SlashCmdList.DETAILS (msg, editbox)
--> debug
elseif (msg == "auras") then
if (IsInRaid()) then
for raidIndex = 1, GetNumGroupMembers() do
for buffIndex = 1, 41 do
local name, _, _, _, _, _, _, unitCaster, _, _, spellid = UnitAura ("raid"..raidIndex, buffIndex, nil, "HELPFUL")
print (name, unitCaster, "==", "raid"..raidIndex)
if (name and unitCaster == "raid"..raidIndex) then
local playerName, realmName = UnitName ("raid"..raidIndex)
if (realmName and realmName ~= "") then
playerName = playerName .. "-" .. realmName
end
_detalhes.parser:add_buff_uptime (nil, GetTime(), UnitGUID ("raid"..raidIndex), playerName, 0x00000417, UnitGUID ("raid"..raidIndex), playerName, 0x00000417, spellid, name, in_or_out)
else
--break
end
end
end
end
elseif (msg == "users") then
_detalhes.users = {}
_detalhes.sent_highfive = GetTime()
_detalhes:SendRaidData ("highfive")
print (Loc ["STRING_DETAILS1"] .. "highfive sent.")
elseif (command == "showusers") then
local users = _detalhes.users
@@ -392,7 +426,7 @@ function SlashCmdList.DETAILS (msg, editbox)
--> debug
elseif (msg == "save") then
print ("running...")
print ("running... this is a debug command, details wont work until next /reload.")
_detalhes:PrepareTablesForSave()
elseif (msg == "id") then
@@ -408,10 +442,10 @@ function SlashCmdList.DETAILS (msg, editbox)
elseif (msg == "debug") then
if (_detalhes.debug) then
_detalhes.debug = false
_detalhes:Msg ("diagnostic mode has been turned off.")
print (Loc ["STRING_DETAILS1"] .. "diagnostic mode has been turned off.")
else
_detalhes.debug = true
_detalhes:Msg ("diagnostic mode has been turned on.")
print (Loc ["STRING_DETAILS1"] .. "diagnostic mode has been turned on.")
end
--> debug combat log
@@ -450,6 +484,8 @@ function SlashCmdList.DETAILS (msg, editbox)
print ("|cffffaeae/details " .. Loc ["STRING_SLASH_ENABLE"] .. "|r: " .. Loc ["STRING_SLASH_ENABLE_DESC"])
print ("|cffffaeae/details " .. Loc ["STRING_SLASH_DISABLE"] .. "|r: " .. Loc ["STRING_SLASH_DISABLE_DESC"])
print ("|cffffaeae/details " .. Loc ["STRING_SLASH_OPTIONS"] .. "|r|cfffcffb0 <instance number>|r: " .. Loc ["STRING_SLASH_OPTIONS_DESC"])
print ("|cffffaeae/details " .. Loc ["STRING_SLASH_CHANGES"] .. "|r: " .. Loc ["STRING_SLASH_CHANGES_DESC"])
print ("|cffffaeae/details " .. Loc ["STRING_SLASH_WORLDBOSS"] .. "|r: " .. Loc ["STRING_SLASH_WORLDBOSS_DESC"])
print (" ")
end
+7
View File
@@ -338,6 +338,8 @@ do
--shaman
[114893] = true, --Stone Bulwark (stone bulwark totem)
[145379] = true, --Barreira da Natureza
[145378] = true, --2P T16
--paladin
[86273] = true, --Illuminated Healing (holy)
@@ -347,6 +349,10 @@ do
[116849] = true, --Life Cocoon (mistweaver)
[115295] = true, --Guard (brewmaster)
[118604] = true, --Guard (brewmaster)
[145051] = true, --Proteção de Niuzao
[145056] = true, --
[145441] = true, --2P T16
[145439] = true, --2P T16
--warlock
[6229] = true, --Twilight Ward
@@ -365,6 +371,7 @@ do
--others
[116631] = true, -- enchant "Enchant Weapon - Colossus"
[140380] = true, -- trinket "Inscribed Bag of Hydra-Spawn"
[138925] = true, -- trinket "Stolen Relic of Zuldazar"
}