Originally Posted by
Soapbox
it does, for raid bosses only. However, this does not work for Heroic dungeon bosses.
And Avery, im not really tracking how that works(heroic dungeons), will it work on dungeon heroic bosses?
yes, my es code. Might give you an idea on how to use it.
PHP Code:
if not IsPlayerSpell(114157) then return false end
local goakSTART, goakDURATION = GetSpellCooldown(86698)
local awSTART, awDURATION = GetSpellCooldown(31884)
local haSTART, haDURATION = GetSpellCooldown(105809)
local bossExists = nil
local bossTarget = nil
for i=1,4 do
local bossCheck = "boss"..i
if UnitExists(bossCheck) then
bossExists = true
if UnitIsUnit(bossCheck, "target") then
bossTarget = bossCheck
end
end
end
if (select(2, GetSpecializationInfo(GetSpecialization()))) == "Retribution" then
if UnitBuffID("player", 84963) then
if bossExists == nil then
return true
else
if (IsPlayerSpell(105809) and PQR_SpellAvailable(105809)) or PQR_SpellAvailable(31884) or (goakSTART - GetTime() + goakDURATION <= 20 and goakSTART - GetTime() + goakDURATION > 0)
or (awSTART - GetTime() + awDURATION <= 10 and awSTART - GetTime() + awDURATION > 0) or (haSTART - GetTime() + haDURATION <= 10 and haSTART - GetTime() + haDURATION > 0) then return false end
if (not PQR_SpellAvailable(86698) and UnitBuffID("player", 86698) == nil) or UnitBuffID("player", 86698) and select(7, UnitBuffID( "player", 86698)) - GetTime() <= 21 then
if bossTarget ~= nil then
return true
end
end
end
end
elseif (select(2, GetSpecializationInfo(GetSpecialization()))) == "Protection" then
if PQR_SpellAvailable(35395)
or PQR_SpellAvailable(20271)
or PQR_SpellAvailable(31935)
or (UnitBuffID("player", 85416) and UnitPower("player", 9) < 5)
or (switch == true and PQR_SpellAvailable(26573)) then return false end
if switch == false then
if bossExists == nil then
return true
elseif bossTarget ~= nil then
return true
end
elseif switch == true then
if PQR_SpellAvailable(26573) then
return false
elseif not PQR_SpellAvailable(26573) then
if bossExists == nil then
return true
elseif bossTarget ~= nil then
return true
end
end
end
end
Originally Posted by
Valma
Try to change COMBAT_LOG_EVENT to COMBAR_LOG_EVENT_UNFILTERED. Seems like you have some filters specified on combat log which doesnt allow you to parse damage done from you.
will try, thanks for the reply.
edit: Will it still work for people who might have it filtered? or do I need to check for both.