- Applyed the experimental alphabetical sort method on Damage and Heal classes.

- Spell icon is shown when the character is a environment spell type.
- Changed the non-player enemy icon (monsters).
- Fixed bug on flex performance profile.
This commit is contained in:
tercio
2014-07-10 13:52:55 -03:00
parent 3391a22ebc
commit 67c844e8f8
10 changed files with 55 additions and 21 deletions
+6
View File
@@ -488,7 +488,13 @@
if (_detalhes.tabela_vigente.instance_type == "raid") then
--> schedule captures off
_detalhes:CaptureSet (false, "damage", false, 15)
_detalhes:CaptureSet (false, "energy", false, 15)
_detalhes:CaptureSet (false, "aura", false, 15)
_detalhes:CaptureSet (false, "energy", false, 15)
_detalhes:CaptureSet (false, "spellcast", false, 15)
if (_detalhes.debug) then
_detalhes:Msg ("(debug) freezing parser for 15 seconds.")
end
+1 -1
View File
@@ -121,7 +121,7 @@ function _detalhes:GetPerformanceRaidType()
--flex
if (difficulty == 14) then
if (GetNumGroupMembers > 15) then
if (GetNumGroupMembers() > 15) then
return "Raid30"
else
return "Raid15"
+7
View File
@@ -38,6 +38,7 @@
local _math_ceil = math.ceil --lua local
local _table_wipe = table.wipe --lua local
local _GetSpellInfo = _detalhes.getspellinfo --details api
local escudo = _detalhes.escudos --details local
local parser = _detalhes.parser --details local
local absorb_spell_list = _detalhes.AbsorbSpells --details local
@@ -189,6 +190,12 @@
else
if (who_flags) then --> ter certeza que não é um pet
damage_cache [who_name] = este_jogador
--> se for spell actor
if (who_name:find ("[*]")) then
local _, _, icon = _GetSpellInfo (spellid or 1)
este_jogador.spellicon = icon
--print ("spell actor:", who_name, "icon:", icon)
end
end
end
+4 -3
View File
@@ -15,13 +15,14 @@
local _upper = string.upper --lua local
local _ipairs = ipairs --lua local
local _pairs = pairs --lua local
local _string_format = string.format --lua local
local _math_floor = math.floor --lua local
local _math_max = math.max --lua local
local _math_abs = math.abs --lua local
local _type = type --lua local
local _string_match = string.match --lua local
local _string_byte = string.byte
local _string_byte = string.byte --lua local
local _string_len = string.lenv
local _string_format = string.format --lua local
local loadstring = loadstring --lua local
local _UnitClass = UnitClass --wow api local
@@ -41,7 +42,7 @@
--> get the fractional number representing the alphabetical letter
function _detalhes:GetAlphabeticalOrderNumber (who_name)
local name = _upper (who_name)
local name = _upper (who_name .. "zz")
local byte1 = _math_abs (_string_byte (name, 2)-91)/1000000
return byte1 + _math_abs (_string_byte (name, 1)-91)/10000
end