remove C_UnitAuras use
This commit is contained in:
@@ -1421,7 +1421,7 @@ function _detalhes:CatchRaidDebuffUptime(sOperationType) -- "DEBUFF_UPTIME_IN"
|
|||||||
checked [his_target] = true
|
checked [his_target] = true
|
||||||
|
|
||||||
for debuffIndex = 1, 41 do
|
for debuffIndex = 1, 41 do
|
||||||
local name, _, _, _, _, _, _, unitCaster, _, _, spellid = C_UnitAuras.GetAuraDataByIndex (target, debuffIndex, 'HARMFUL')
|
local name, _, _, _, _, _, _, unitCaster, _, _, spellid = UnitAura (target, debuffIndex, 'HARMFUL')
|
||||||
if (name and unitCaster) then
|
if (name and unitCaster) then
|
||||||
local playerGUID = UnitGUID(unitCaster)
|
local playerGUID = UnitGUID(unitCaster)
|
||||||
if (playerGUID) then
|
if (playerGUID) then
|
||||||
@@ -1451,7 +1451,7 @@ function _detalhes:CatchRaidDebuffUptime(sOperationType) -- "DEBUFF_UPTIME_IN"
|
|||||||
checked [his_target] = true
|
checked [his_target] = true
|
||||||
|
|
||||||
for debuffIndex = 1, 40 do
|
for debuffIndex = 1, 40 do
|
||||||
local name, _, _, _, _, _, _, unitCaster, _, _, spellid = C_UnitAuras.GetAuraDataByIndex ("party"..raidIndex.."target", debuffIndex, 'HARMFUL')
|
local name, _, _, _, _, _, _, unitCaster, _, _, spellid = UnitAura ("party"..raidIndex.."target", debuffIndex, 'HARMFUL')
|
||||||
if (name and unitCaster) then
|
if (name and unitCaster) then
|
||||||
local playerName, realmName = _UnitName (unitCaster)
|
local playerName, realmName = _UnitName (unitCaster)
|
||||||
local playerGUID = UnitGUID(unitCaster)
|
local playerGUID = UnitGUID(unitCaster)
|
||||||
@@ -1471,7 +1471,7 @@ function _detalhes:CatchRaidDebuffUptime(sOperationType) -- "DEBUFF_UPTIME_IN"
|
|||||||
local rect = UnitReaction ("playertarget", "player")
|
local rect = UnitReaction ("playertarget", "player")
|
||||||
if (his_target and not checked [his_target] and rect and rect <= 4) then
|
if (his_target and not checked [his_target] and rect and rect <= 4) then
|
||||||
for debuffIndex = 1, 40 do
|
for debuffIndex = 1, 40 do
|
||||||
local name, _, _, _, _, _, _, unitCaster, _, _, spellid = C_UnitAuras.GetAuraDataByIndex ("playertarget", debuffIndex, 'HARMFUL')
|
local name, _, _, _, _, _, _, unitCaster, _, _, spellid = UnitAura ("playertarget", debuffIndex, 'HARMFUL')
|
||||||
if (name and unitCaster) then
|
if (name and unitCaster) then
|
||||||
local playerName, realmName = _UnitName (unitCaster)
|
local playerName, realmName = _UnitName (unitCaster)
|
||||||
local playerGUID = UnitGUID(unitCaster)
|
local playerGUID = UnitGUID(unitCaster)
|
||||||
@@ -1491,7 +1491,7 @@ function _detalhes:CatchRaidDebuffUptime(sOperationType) -- "DEBUFF_UPTIME_IN"
|
|||||||
local reaction = UnitReaction ("playertarget", "player")
|
local reaction = UnitReaction ("playertarget", "player")
|
||||||
if (reaction and reaction <= 4) then
|
if (reaction and reaction <= 4) then
|
||||||
for debuffIndex = 1, 40 do
|
for debuffIndex = 1, 40 do
|
||||||
local name, _, _, _, _, _, _, unitCaster, _, _, spellid = C_UnitAuras.GetAuraDataByIndex ("playertarget", debuffIndex, 'HARMFUL')
|
local name, _, _, _, _, _, _, unitCaster, _, _, spellid = UnitAura ("playertarget", debuffIndex, 'HARMFUL')
|
||||||
if (name and unitCaster) then
|
if (name and unitCaster) then
|
||||||
local playerName, realmName = _UnitName (unitCaster)
|
local playerName, realmName = _UnitName (unitCaster)
|
||||||
local playerGUID = UnitGUID(unitCaster)
|
local playerGUID = UnitGUID(unitCaster)
|
||||||
@@ -1535,7 +1535,7 @@ function _detalhes:CatchRaidBuffUptime(sOperationType)
|
|||||||
end
|
end
|
||||||
|
|
||||||
for buffIndex = 1, 41 do
|
for buffIndex = 1, 41 do
|
||||||
local name, _, _, _, _, _, unitCaster, _, _, spellId = C_UnitAuras.GetAuraDataByIndex(unitId, buffIndex, "HELPFUL")
|
local name, _, _, _, _, _, _, unitCaster, _, _, spellid = UnitAura(unitId, buffIndex, "HELPFUL")
|
||||||
if (name and unitCaster and UnitExists(unitCaster) and UnitExists(unitId) and UnitIsUnit(unitCaster, unitId)) then
|
if (name and unitCaster and UnitExists(unitCaster) and UnitExists(unitId) and UnitIsUnit(unitCaster, unitId)) then
|
||||||
_detalhes.parser:add_buff_uptime(nil, cacheGetTime, playerGUID, playerName, 0x00000514, playerGUID, playerName, 0x00000514, 0x0, spellId, name, sOperationType)
|
_detalhes.parser:add_buff_uptime(nil, cacheGetTime, playerGUID, playerName, 0x00000514, playerGUID, playerName, 0x00000514, 0x0, spellId, name, sOperationType)
|
||||||
|
|
||||||
@@ -1579,7 +1579,7 @@ function _detalhes:CatchRaidBuffUptime(sOperationType)
|
|||||||
local unitId = "party" .. groupIndex
|
local unitId = "party" .. groupIndex
|
||||||
for buffIndex = 1, 41 do
|
for buffIndex = 1, 41 do
|
||||||
if (UnitExists(unitId)) then
|
if (UnitExists(unitId)) then
|
||||||
local auraName, _, _, _, _, _, unitCaster, _, _, spellId = C_UnitAuras.GetAuraDataByIndex(unitId, buffIndex, 'HELPFUL')
|
local name, _, _, _, _, _, _, unitCaster, _, _, spellid = UnitAura(unitId, buffIndex, 'HELPFUL')
|
||||||
if (auraName) then
|
if (auraName) then
|
||||||
if (UnitExists(unitCaster)) then
|
if (UnitExists(unitCaster)) then
|
||||||
local bBuffIsPlacedOnTarget = Details.CreditBuffToTarget[spellId]
|
local bBuffIsPlacedOnTarget = Details.CreditBuffToTarget[spellId]
|
||||||
@@ -1622,7 +1622,7 @@ function _detalhes:CatchRaidBuffUptime(sOperationType)
|
|||||||
--player it self (while in a party that isn't a raid group)
|
--player it self (while in a party that isn't a raid group)
|
||||||
local unitId = "player"
|
local unitId = "player"
|
||||||
for buffIndex = 1, 41 do
|
for buffIndex = 1, 41 do
|
||||||
local auraName, _, _, _, _, _, unitCaster, _, _, spellId = C_UnitAuras.GetAuraDataByIndex(unitId, buffIndex, 'HELPFUL')
|
local auraName, _, _, _, _, _, _, unitCaster, _, _, spellid = UnitAura(unitId, buffIndex, 'HELPFUL')
|
||||||
if (auraName) then
|
if (auraName) then
|
||||||
if (UnitExists(unitCaster)) then -- and unitCaster and UnitExists(unitCaster) and UnitIsUnit(unitCaster, unitId)
|
if (UnitExists(unitCaster)) then -- and unitCaster and UnitExists(unitCaster) and UnitIsUnit(unitCaster, unitId)
|
||||||
local bBuffIsPlacedOnTarget = Details.CreditBuffToTarget[spellId]
|
local bBuffIsPlacedOnTarget = Details.CreditBuffToTarget[spellId]
|
||||||
@@ -1681,7 +1681,7 @@ function _detalhes:CatchRaidBuffUptime(sOperationType)
|
|||||||
local focus_augmentation = {}
|
local focus_augmentation = {}
|
||||||
|
|
||||||
for buffIndex = 1, 41 do
|
for buffIndex = 1, 41 do
|
||||||
local auraName, _, _, _, _, _, unitCaster, _, _, spellid = C_UnitAuras.GetAuraDataByIndex ("player", buffIndex, "HELPFUL")
|
local auraName, _, _, _, _, _, _, unitCaster, _, _, spellid = UnitAura ("player", buffIndex, "HELPFUL")
|
||||||
if (auraName and unitCaster and UnitExists(unitCaster) and UnitIsUnit(unitCaster, "player")) then
|
if (auraName and unitCaster and UnitExists(unitCaster) and UnitIsUnit(unitCaster, "player")) then
|
||||||
local playerName = Details.playername
|
local playerName = Details.playername
|
||||||
local playerGUID = UnitGUID("player")
|
local playerGUID = UnitGUID("player")
|
||||||
|
|||||||
Reference in New Issue
Block a user