- Added Enemy Damage Taken by clicking with middle mouse button over a enemy bar.

- Implemented code for early tests with new version checker.
- Renamed option menu "externals" to "Data Feed".
This commit is contained in:
tercio
2014-07-02 20:40:23 -03:00
parent 3baa00474b
commit 5fea5b238d
14 changed files with 387 additions and 193 deletions
+25 -5
View File
@@ -1217,10 +1217,23 @@ function _detalhes:CatchRaidBuffUptime (in_or_out)
if (_IsInRaid()) then
local pot_usage = {}
local pot_usage_test = {}
for raidIndex = 1, _GetNumGroupMembers() do
for buffIndex = 1, 41 do
local name, _, _, _, _, _, _, unitCaster, _, _, spellid = _UnitAura ("raid"..raidIndex, buffIndex, nil, "HELPFUL")
if (in_or_out == "BUFF_UPTIME_IN") then
if (_detalhes.PotionList [spellid]) then
print ("Pre Potion Found on raidIndex", raidIndex, unitCaster, spellid)
local playerName, realmName = _UnitName ("raid"..raidIndex)
if (realmName and realmName ~= "") then
playerName = playerName .. "-" .. realmName
end
pot_usage_test [playerName] = spellid
end
end
--print (name, unitCaster, "==", "raid"..raidIndex)
if (name and unitCaster == "raid"..raidIndex) then
@@ -1243,7 +1256,7 @@ function _detalhes:CatchRaidBuffUptime (in_or_out)
end
end
--> i don't remmember why do we iterate through the player again.
--> unitCaster return player instead of raidIndex
for buffIndex = 1, 41 do
local name, _, _, _, _, _, _, unitCaster, _, _, spellid = _UnitAura ("player", buffIndex, nil, "HELPFUL")
if (name and unitCaster == "player") then
@@ -1262,17 +1275,24 @@ function _detalhes:CatchRaidBuffUptime (in_or_out)
end
if (in_or_out == "BUFF_UPTIME_IN") then
local string_output = "pre-potion: "
local string_output = "pre-potion raw: "
for playername, potspellid in _pairs (pot_usage_test) do
local name, _, icon = _GetSpellInfo (potspellid)
local _, class = UnitClass (playername)
local class_color = RAID_CLASS_COLORS [class].colorStr
string_output = string_output .. "|c" .. class_color .. playername .. "|r |T" .. icon .. ":14:14:0:0:64:64:0:64:0:64|t "
end
_detalhes.debug_pots1 = string_output
local string_output = "pre-potion: "
for playername, potspellid in _pairs (pot_usage) do
local name, _, icon = _GetSpellInfo (potspellid)
local _, class = UnitClass (playername)
local class_color = RAID_CLASS_COLORS [class].colorStr
string_output = string_output .. "|c" .. class_color .. playername .. "|r |T" .. icon .. ":14:14:0:0:64:64:0:64:0:64|t "
end
_detalhes:Msg (string_output)
_detalhes.debug_pots2 = string_output
end