New API Details.SegmentPhases() and Details.UnitDamageByPhase()

Details.SegmentPhases(): return a table containing phase numbers, use to query unit damage for a specific encounter phase.
Details.UnitDamageByPhase( unitId, phaseNumber): query the damage of a unit during a specific phase.
This commit is contained in:
Tercioo
2019-04-23 15:02:34 -03:00
parent 1869c6134d
commit dfad8bc9fd
2 changed files with 16 additions and 8 deletions
+7 -6
View File
File diff suppressed because one or more lines are too long
+9 -2
View File
@@ -212,6 +212,8 @@
--> discharge apetagonizer core
local SPELLNAME_GRONG_CORE = GetSpellInfo (285660)
local SPELLNAME_GRONG_CORE_ALLIANCE = GetSpellInfo (286435)
--> storm of annihilation
local SPELLANAME_STORM_OF_ANNIHILATION = GetSpellInfo (284601)
--> spells with special treatment
local special_damage_spells = {
@@ -433,8 +435,13 @@
--end
--rules of specific encounters
if (_current_encounter_id == 2263 or _current_encounter_id == 2284) then --grong --REMOVE ON 9.0 LAUNCH
if (_current_encounter_id == 2273) then --Uu'nat --REMOVE ON 9.0 LAUNCH
if (spellname == SPELLANAME_STORM_OF_ANNIHILATION or spellid == 284601) then
--return --this is parsed as friendly fire
end
elseif (_current_encounter_id == 2263 or _current_encounter_id == 2284) then --grong --REMOVE ON 9.0 LAUNCH
if (spellid == 285660 or spellname == SPELLNAME_GRONG_CORE or spellid == 286435 or spellname == SPELLNAME_GRONG_CORE_ALLIANCE) then
return
end