ElitismDerper

I know some people (me included) don’t like this addon.
For me, the main reasons are:

  • it doesn’t give you much details, only a final number.
  • it spams, usually at a bad time, preventing you to see what’s happening around your character

So, I’ve spent some time working on a details custom display.
It shows a total damage taken from a selection of avoidable damage sources.
It also shows details when you mouseover it.

Feel free to suggest improvements.

Here is the import code:
T316YnoUY5NLZVSCQr6O7I6u1MuYY3h7z8XsZ4Km76XqKWIynjHwqsBRzRXVzNFLxS0DdijcAbzVvYpz5Y3ij(yJg9DGU0TTUD6TtsL5kF(TZUDclpluQUDY0W)N)Lsu)qPmoKfhZHlfWt9VDc8Wl4rrIa8PtyX8BNm6rPiGnlI)YDhYIzZHFpL9apbEuFLyr2TtQxFop7L7YcHBTGPGrLXvP4FNMYdE58iPpl6L7glJNXY(a8h5PzY4XYKmMiHRGRCwsAglXhg)V8YDnA04LZRxpG7hXc4gCFKfLZbmZKVCNINLRswJBMmJf9b83lGFYIL5jzeqn)G57xoNauAWkskxGxOeD8pgfe8v818YD1y(zsKWOF3GE57JdHg6D8KaesZ7pWNEB6P3)4eE2AeRD4rthD2ft((OPtV(Sd(Y0J((HJUC0jhTFHHtm8ucI)eU8D6VQxhy38z5ZlEPV1Ux7wD7(B0d36dV6w9A(6Bzd51C2crIfOTh2SPxVpS(5l8foIJEgOVxUBImh(zTJsEuOKjX8KS93as7H9B1TTtiMeYcKpb)oMLgcGCHmntJ4(2uxBpV(d74eNtuShHfNdKrWWRnvQqYaeWmqD3zO8rOifLqyrrlHLVvYU)hUyiJU)EXZGG1M5sZHE9F9CbF2VkJ8zjcy5(QO8yUB2r7(9ATDiMWsMNdIgaX6dAIoHWMipwX5HYOGcVIbTB2T)wEfOyJqZLINbWd8E1dZycl6R3GUTDm4du5zOu5bm)hczGC(D1odiVmbQjEuY9sWsIYclVo9AVDSG1Rf80qjUAnMTa1jamYdKkMfc97nSRdQHPuK0NrYznkxZSLEa(rNboa5MqHkAHuc4iVhWeTQKweSZLGWsjkYfZL4NGfqPkHHguQnvjZczpyZE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NVNs367(qau8VTMe(nN4Hjxph(Ew5fWjBErJLrOo8MlST(g8vxPG5rSbeVGsmTwrUIL4tTVVMLU)BcgwMH80dODpPvZM)B04(76LfmAJ1Zk47gyeB3ZIsXx5F(O(tHm8tYlQFm8X5MwBRbvOKI)SzdVF(Z9RxhPm(ZA)zWt(TVTPh8aI5ZjP)QHX9Rc8tXT0FDgt9Dq5dsYlB5V9B)8TNqA5IARLrmZd87nRWgDJgqUo8VhYXc38w3F)xBV52SBV9)9p

And basically here is the code itself:
Search code:

--get the parameters passed
local Combat, CustomContainer, Instance = ...
--declade the values to return
local total, top, amount = 0, 0, 0

--do the loop
--CustomContainer:AddValue (actor, actor.value)
--loop end

local dc = Combat:GetContainer(DETAILS_ATTRIBUTE_DAMAGE)

local spells = {
    -- Debug
    --[252144] = 1,
    --[252150] = 1,
    
    -- Reaping
    --290085,          -- Expel Soul (Environment)
    296142,          -- Shadow Smash (Lost Soul)
    -- 288693,          -- Grave Bolt (Tormented Soul) Is this really avoidable?
    
    -- Affixes
    209862,        -- Volcanic Plume (Environment)
    226512,        -- Sanguine Ichor (Environment)
    
    -- Freehold
    272046,        --- Dive Bomb (Sharkbait)
    257426,        --- Brutal Backhand (Irontide Enforcer)
    258352,        --- Grapeshot (Captain Eudora)
    256594,        --- Barrel Smash (Captain Raoul)
    272374,        --- Whirlpool of Blades (Captain Jolly)
    256546,        --- Shark Tornado (Trothak)
    257310,        --- Cannon Barrage (Harlan Sweete)
    257784,        --- Frost Blast (Bilge Rat Brinescale)
    257902,        --- Shell Bounce (Ludwig Von Tortollan)
    258199,        --- Ground Shatter (Irontide Crusher)
    276061,        --- Boulder Throw (Irontide Crusher)
    258779,        --- Sea Spout (Irontide Oarsman)
    274400,        --- Duelist Dash (Cutwater Duelist)
    257274,        --- Vile Coating (Environment)
    258673,        --- Azerite Grenade (Irontide Crackshot)
    274389,        --- Rat Traps (Vermin Trapper)
    257460,        --- Fiery Debris (Harlan Sweete)
    --257871,        --- Blade Barrage (Irontide Buccaneer)
    --257757,        --- Goin' Bananas (Bilge Rat Buccaneer)
    
    -- Shrine of the Storm
    276268,        --- Heaving Blow (Shrine Templar)
    267973,        --- Wash Away (Temple Attendant)
    268059,        --- Anchor of Binding (Tidesage Spiritualist)
    264155,        --- Surging Rush (Aqu'sirr)
    267841,        --- Blowback (Galecaller Faye)
    267899,        --- Hindering Cleave (Brother Ironhull)
    268280,        --- Tidal Pod (Tidesage Enforcer)
    276286,        --- Slicing Hurricane (Galecaller Apprentice)
    276292,        --- Whirlign Slam (Ironhull Apprentice)
    267385,        --- Tentacle Slam (Vol'zith the Whisperer)
    
    -- Siege of Boralus
    256627,        --- Slobber Knocker (Kul Tiran Halberd)
    256663,        --- Burning Tar (Blacktar Bomber)
    275775,        --- Savage Tempest (Irontide Raider)
    257292,        --- Heavy Slash (Kul Tiran Vanguard)
    272426,        --- Sighted Artillery (Ashvane Spotter)
    257069,        --- Watertight Shell (Kul Tiran Wavetender)
    273681,        --- Heavy Hitter (Chopper Redhook)
    272874,        --- Trample (Ashvane Commander)
    268260,        --- Broadside (Ashvane Cannoneer)
    269029,        --- Clear the Deck (Dread Captain Lockwood)
    268443,        --- Dread Volley (Dread Captain Lockwood)
    272713,        --- Crushing Slam (Bilge Rat Demolisher)
    274941,        --- Banana Rampage swirlies(Bilge Rat Buccaneer)
    257883,        --- Break Water (Hadal Darkfathom)
    276068,        --- Tidal Surge (Hadal Darkfathom)
    257886,        --- Brine Pool (Hadal Darkfathom)
    261565,        --- Crashing Tide (Hadal Darkfathom)
    277535,        --- Viq'Goth's Wrath (Viq'Goth)
    
    -- Tol Dagor
    257119,        --- Sand Trap (The Sand Queen)
    257785,        --- Flashing Daggers (Jes Howlis)
    256976,        --- Ignition (Knight Captain Valyri)
    256955,        --- Cinderflame (Knight Captain Valyri)
    256083,        --- Cross Ignition (Overseer Korgus)
    263345,        --- Massive Blast (Overseer Korgus)
    258364,        --- Fuselighter (Ashvane Flamecaster)
    259711,        --- Lockdown (Ashvane Warden)
    256710,        --- Burning Arsenal (Knight Captain Valyri)
    
    -- Waycrest Manor
    264531,        --- Shrapnel Trap (Maddened Survivalist)
    264476,        --- Tracking Explosive (Crazed Marksman)
    260569,        --- Wildfire (Soulbound Goliath)
    265407,        --- Dinner Bell (Banquet Steward)
    264923,        --- Tenderize (Raal the Gluttonous)
    264712,        --- Rotten Expulsion (Raal the Gluttonous)
    272669,        --- Burning Fists (Soulbound Goliath)
    278849,        --- Uproot (Coven Thornshaper)
    264040,        --- Uprooted Thorns (Coven Thornshaper)
    265757,        --- Splinter Spike (Matron Bryndle)
    264150,        --- Shatter (Thornguard)
    268387,        --- Contagious Remnants (Lord Waycrest)
    268308,        --- Discordant Cadenza (Lady Waycrest
    
    -- Atal'Dazar
    253666,        --- Fiery Bolt (Dazar'ai Juggernaught)
    257692,        --- Tiki Blaze (Environment)
    255620,        --- Festering Eruption (Reanimated Honor Guard)
    258723,        --- Grotesque Pool (Renaimated Honor Guard)
    250259,        --- Toxic Leap (Vol'kaal)
    250022,        --- Echoes of Shadra (Yazma)
    250585,         --- Toxic Pool (Vol'kaal)
    250036,        --- Shadowy Remains (Echoes of Shadra)
    255567,        --- Frenzied Charge (T'lonja)
    
    -- King's Rest
    270003,        --- Suppression Slam (Animated Guardian)
    269932,        --- Ghust Slash (Shadow-Borne Warrior)
    265781,        --- Serpentine Gust (The Golden Serpent)
    265914,        --- Molten Gold (The Golden Serpent)
    270928,        --- Bladestorm (King Timalji)
    270931,        --- Darkshot (Queen Patlaa)
    270891,        --- Channel Lightning (King Rahu'ai)
    266191,        --- Whirling Axe (Council of Tribes)
    270292,        --- Purifying Flame (Purification Construct)
    270503,        --- Hunting Leap (Honored Raptor)
    270514,        --- Ground Crush (Spectral Brute)
    271564,        --- Embalming Fluid (Embalming Fluid)
    270485,        --- Blooded Leap (Spectral Berserker)
    267639,        --- Burn Corruption (Mchimba the Embalmer)
    268419,        --- Gale Slash (King Dazar)
    268796,        --- Impaling Spear (King Dazar)
    
    -- The MOTHERLODE!!
    257371,        --- Gas Can (Mechanized Peace Keeper)
    262287,        --- Concussion Charge (Mech Jockey / Venture Co. Skyscorcher)
    268365,        --- Mining Charge (Wanton Sapper)
    269313,        --- Final Blast (Wanton Sapper)
    275907,        --- Tectonic Smash (Azerokk)
    259533,        --- Azerite Catalyst (Rixxa Fluxflame)
    260103,        --- Propellant Blast (Rixxa Fluxflame)
    260279,        --- Gattling Gun (Mogul Razdunk)
    276234,         --- Micro Missiles (Mogul Razdunk)
    270277,        --- Big Red Rocket (Mogul Razdunk)
    271432,        --- Test Missile (Venture Co. War Machine)
    --262348,        --- Mine Blast (Crawler Mine)
    257337,        --- Shocking Claw (Coin-Operated Pummeler)
    268417,        --- Power Through (Azerite Extractor)
    268704,        --- Furious Quake (Stonefury)
    258628,        --- Resonant Quake (Earthrager)
    269092,        --- Artillery Barrage (Ordnance Specialist)
    271583,        --- Black Powder Special (Mines near the track)
    269831,        --- Toxic Sludge (Oil Environment)
    
    -- Temple of Sethraliss
    263425,        --- Arc Dash (Adderis)
    268851,        --- Lightning Shield (Aspix and Adderis)
    263573,        --- Cyclone Strike (Adderis)
    273225,        --- Volley (Sandswept Marksman)
    272655,        --- Scouring Sand (Mature Krolusk)
    273995,        --- Pyrrhic Blast (Crazed Incubator)
    272696,        --- Lightning in a Bottle (Crazed Incubator)
    264206,        --- Burrow (Merektha)
    272657,        --- Noxious Breath (Merektha)
    272821,        --- Call Lightning (Imbued Stormcaller)
    264763,        --- Spark (Static-charged Dervish)
    279014,        --- Cardiac Shock (Avatar, Environment)
    
    -- Underrot
    265542,        --- Rotten Bile (Fetid Maggot)
    265019,        --- Savage Cleave (Chosen Blood Matron)
    261498,        --- Creeping Rot (Elder Leaxa)
    264757,        --- Sanguine Feast (Elder Leaxa)
    265665,        --- Foul Sludge (Living Rot)
    260312,        --- Charge (Cragmaw the Infested)
    265511,        --- Spirit Drain (Spirit Drain Totem)
    259720,        --- Upheaval (Sporecaller Zancha)
    270108,        --- Rotting Spore (Unbound Abomination)
    272609,        --- Maddenin Gaze (Faceless Corruptor)
    272469,        --- Abyssal Slam (Faceless Corruptor)
    270108,        --- Rotting Spore (Unbound Abomination)
    
    -- Mechagon Workshop
    294128,        --- Rocket Barrage (Rocket Tonk)
    285020,        --- Whirling Edge (The Platinum Pummeler)
    294291,        --- Process Waste ()
    291930,        --- Air Drop (K.U-J.0)
    294324,        --- Mega Drill (Waste Processing Unit)
    293861,        --- Anti-Personnel Squirrel (Anti-Personnel Squirrel)
    295168,        --- Capacitor Discharge (Blastatron X-80)
    294954,        --- Self-Trimming Hedge (Head Machinist Sparkflux)
    
    
    -- Mechagon Junkyard
    300816,        --- Slimewave (Slime Elemental)
    300188,        --- Scrap Cannon (Weaponized Crawler)
    300427,        --- Shockwave (Scrapbone Bully)
    294890,        --- Gryro-Scrap (Malfunctioning Scrapbot)
    300129,        --- Self-Destruct Protocol (Malfunctioning Scrapbot)
    300561,        --- Explosion (Scrapbone Trashtosser)
    299475,        --- B.O.R.K. (Scraphound)
    299535,        --- Scrap Blast (Pistonhead Blaster)
    298940,        --- Bolt Buster (Naeno Megacrash)
    297283,        --- Cave In (King Gobbamak)
    
    --- Awakened Lieutenant
    314309,        --- Dark Fury (Urg'roth, Breaker of Heroes)
    314467,        --- Volatile Rupture (Voidweaver Mal'thir)
    314565,        --- Defiled Ground (Blood of the Corruptor)
}

for i, spellID in ipairs(spells) do
    local sourceNPC = dc:GetSpellSource(spellID)
    local source = dc:GetActor(sourceNPC)
    if (source) then
        local spell = source:GetSpell(spellID)
        if (spell) then
            for playerName, amount in pairs(spell.targets) do
                local target = dc:GetActor(playerName)
                if (target) then
                    CustomContainer:AddValue(target, amount)
                end
            end
        end
    end
end

--if not managed inside the loop, get the values of total, top and amount
total, top = CustomContainer:GetTotalAndHighestValue()
amount = CustomContainer:GetNumActors()

--return the values
return total, top, amount

































Tooltip code:

--get the parameters passed
local actor, combat, instance = ...

local spells = {
    -- Reaping
    --290085,          -- Expel Soul (Environment)
    296142,          -- Shadow Smash (Lost Soul)
    -- 288693,          -- Grave Bolt (Tormented Soul) Is this really avoidable?
    
    -- Affixes
    209862,        -- Volcanic Plume (Environment)
    226512,        -- Sanguine Ichor (Environment)
    
    -- Freehold
    272046,        --- Dive Bomb (Sharkbait)
    257426,        --- Brutal Backhand (Irontide Enforcer)
    258352,        --- Grapeshot (Captain Eudora)
    256594,        --- Barrel Smash (Captain Raoul)
    272374,        --- Whirlpool of Blades (Captain Jolly)
    256546,        --- Shark Tornado (Trothak)
    257310,        --- Cannon Barrage (Harlan Sweete)
    257784,        --- Frost Blast (Bilge Rat Brinescale)
    257902,        --- Shell Bounce (Ludwig Von Tortollan)
    258199,        --- Ground Shatter (Irontide Crusher)
    276061,        --- Boulder Throw (Irontide Crusher)
    258779,        --- Sea Spout (Irontide Oarsman)
    274400,        --- Duelist Dash (Cutwater Duelist)
    257274,        --- Vile Coating (Environment)
    258673,        --- Azerite Grenade (Irontide Crackshot)
    274389,        --- Rat Traps (Vermin Trapper)
    257460,        --- Fiery Debris (Harlan Sweete)
    --257871,        --- Blade Barrage (Irontide Buccaneer)
    --257757,        --- Goin' Bananas (Bilge Rat Buccaneer)
    
    -- Shrine of the Storm
    276268,        --- Heaving Blow (Shrine Templar)
    267973,        --- Wash Away (Temple Attendant)
    268059,        --- Anchor of Binding (Tidesage Spiritualist)
    264155,        --- Surging Rush (Aqu'sirr)
    267841,        --- Blowback (Galecaller Faye)
    267899,        --- Hindering Cleave (Brother Ironhull)
    268280,        --- Tidal Pod (Tidesage Enforcer)
    276286,        --- Slicing Hurricane (Galecaller Apprentice)
    276292,        --- Whirlign Slam (Ironhull Apprentice)
    267385,        --- Tentacle Slam (Vol'zith the Whisperer)
    
    -- Siege of Boralus
    256627,        --- Slobber Knocker (Kul Tiran Halberd)
    256663,        --- Burning Tar (Blacktar Bomber)
    275775,        --- Savage Tempest (Irontide Raider)
    257292,        --- Heavy Slash (Kul Tiran Vanguard)
    272426,        --- Sighted Artillery (Ashvane Spotter)
    257069,        --- Watertight Shell (Kul Tiran Wavetender)
    273681,        --- Heavy Hitter (Chopper Redhook)
    272874,        --- Trample (Ashvane Commander)
    268260,        --- Broadside (Ashvane Cannoneer)
    269029,        --- Clear the Deck (Dread Captain Lockwood)
    268443,        --- Dread Volley (Dread Captain Lockwood)
    272713,        --- Crushing Slam (Bilge Rat Demolisher)
    274941,        --- Banana Rampage swirlies(Bilge Rat Buccaneer)
    257883,        --- Break Water (Hadal Darkfathom)
    276068,        --- Tidal Surge (Hadal Darkfathom)
    257886,        --- Brine Pool (Hadal Darkfathom)
    261565,        --- Crashing Tide (Hadal Darkfathom)
    277535,        --- Viq'Goth's Wrath (Viq'Goth)
    
    -- Tol Dagor
    257119,        --- Sand Trap (The Sand Queen)
    257785,        --- Flashing Daggers (Jes Howlis)
    256976,        --- Ignition (Knight Captain Valyri)
    256955,        --- Cinderflame (Knight Captain Valyri)
    256083,        --- Cross Ignition (Overseer Korgus)
    263345,        --- Massive Blast (Overseer Korgus)
    258364,        --- Fuselighter (Ashvane Flamecaster)
    259711,        --- Lockdown (Ashvane Warden)
    256710,        --- Burning Arsenal (Knight Captain Valyri)
    
    -- Waycrest Manor
    264531,        --- Shrapnel Trap (Maddened Survivalist)
    264476,        --- Tracking Explosive (Crazed Marksman)
    260569,        --- Wildfire (Soulbound Goliath)
    265407,        --- Dinner Bell (Banquet Steward)
    264923,        --- Tenderize (Raal the Gluttonous)
    264712,        --- Rotten Expulsion (Raal the Gluttonous)
    272669,        --- Burning Fists (Soulbound Goliath)
    278849,        --- Uproot (Coven Thornshaper)
    264040,        --- Uprooted Thorns (Coven Thornshaper)
    265757,        --- Splinter Spike (Matron Bryndle)
    264150,        --- Shatter (Thornguard)
    268387,        --- Contagious Remnants (Lord Waycrest)
    268308,        --- Discordant Cadenza (Lady Waycrest
    
    -- Atal'Dazar
    253666,        --- Fiery Bolt (Dazar'ai Juggernaught)
    257692,        --- Tiki Blaze (Environment)
    255620,        --- Festering Eruption (Reanimated Honor Guard)
    258723,        --- Grotesque Pool (Renaimated Honor Guard)
    250259,        --- Toxic Leap (Vol'kaal)
    250022,        --- Echoes of Shadra (Yazma)
    250585,         --- Toxic Pool (Vol'kaal)
    250036,        --- Shadowy Remains (Echoes of Shadra)
    255567,        --- Frenzied Charge (T'lonja)
    
    -- King's Rest
    270003,        --- Suppression Slam (Animated Guardian)
    269932,        --- Ghust Slash (Shadow-Borne Warrior)
    265781,        --- Serpentine Gust (The Golden Serpent)
    265914,        --- Molten Gold (The Golden Serpent)
    270928,        --- Bladestorm (King Timalji)
    270931,        --- Darkshot (Queen Patlaa)
    270891,        --- Channel Lightning (King Rahu'ai)
    266191,        --- Whirling Axe (Council of Tribes)
    270292,        --- Purifying Flame (Purification Construct)
    270503,        --- Hunting Leap (Honored Raptor)
    270514,        --- Ground Crush (Spectral Brute)
    271564,        --- Embalming Fluid (Embalming Fluid)
    270485,        --- Blooded Leap (Spectral Berserker)
    267639,        --- Burn Corruption (Mchimba the Embalmer)
    268419,        --- Gale Slash (King Dazar)
    268796,        --- Impaling Spear (King Dazar)
    
    -- The MOTHERLODE!!
    257371,        --- Gas Can (Mechanized Peace Keeper)
    262287,        --- Concussion Charge (Mech Jockey / Venture Co. Skyscorcher)
    268365,        --- Mining Charge (Wanton Sapper)
    269313,        --- Final Blast (Wanton Sapper)
    275907,        --- Tectonic Smash (Azerokk)
    259533,        --- Azerite Catalyst (Rixxa Fluxflame)
    260103,        --- Propellant Blast (Rixxa Fluxflame)
    260279,        --- Gattling Gun (Mogul Razdunk)
    276234,         --- Micro Missiles (Mogul Razdunk)
    270277,        --- Big Red Rocket (Mogul Razdunk)
    271432,        --- Test Missile (Venture Co. War Machine)
    --262348,        --- Mine Blast (Crawler Mine)
    257337,        --- Shocking Claw (Coin-Operated Pummeler)
    268417,        --- Power Through (Azerite Extractor)
    268704,        --- Furious Quake (Stonefury)
    258628,        --- Resonant Quake (Earthrager)
    269092,        --- Artillery Barrage (Ordnance Specialist)
    271583,        --- Black Powder Special (Mines near the track)
    269831,        --- Toxic Sludge (Oil Environment)
    
    -- Temple of Sethraliss
    263425,        --- Arc Dash (Adderis)
    268851,        --- Lightning Shield (Aspix and Adderis)
    263573,        --- Cyclone Strike (Adderis)
    273225,        --- Volley (Sandswept Marksman)
    272655,        --- Scouring Sand (Mature Krolusk)
    273995,        --- Pyrrhic Blast (Crazed Incubator)
    272696,        --- Lightning in a Bottle (Crazed Incubator)
    264206,        --- Burrow (Merektha)
    272657,        --- Noxious Breath (Merektha)
    272821,        --- Call Lightning (Imbued Stormcaller)
    264763,        --- Spark (Static-charged Dervish)
    279014,        --- Cardiac Shock (Avatar, Environment)
    
    -- Underrot
    265542,        --- Rotten Bile (Fetid Maggot)
    265019,        --- Savage Cleave (Chosen Blood Matron)
    261498,        --- Creeping Rot (Elder Leaxa)
    264757,        --- Sanguine Feast (Elder Leaxa)
    265665,        --- Foul Sludge (Living Rot)
    260312,        --- Charge (Cragmaw the Infested)
    265511,        --- Spirit Drain (Spirit Drain Totem)
    259720,        --- Upheaval (Sporecaller Zancha)
    270108,        --- Rotting Spore (Unbound Abomination)
    272609,        --- Maddenin Gaze (Faceless Corruptor)
    272469,        --- Abyssal Slam (Faceless Corruptor)
    270108,        --- Rotting Spore (Unbound Abomination)
    
    -- Mechagon Workshop
    294128,        --- Rocket Barrage (Rocket Tonk)
    285020,        --- Whirling Edge (The Platinum Pummeler)
    294291,        --- Process Waste ()
    291930,        --- Air Drop (K.U-J.0)
    294324,        --- Mega Drill (Waste Processing Unit)
    293861,        --- Anti-Personnel Squirrel (Anti-Personnel Squirrel)
    295168,        --- Capacitor Discharge (Blastatron X-80)
    294954,        --- Self-Trimming Hedge (Head Machinist Sparkflux)
    
    
    -- Mechagon Junkyard
    300816,        --- Slimewave (Slime Elemental)
    300188,        --- Scrap Cannon (Weaponized Crawler)
    300427,        --- Shockwave (Scrapbone Bully)
    294890,        --- Gryro-Scrap (Malfunctioning Scrapbot)
    300129,        --- Self-Destruct Protocol (Malfunctioning Scrapbot)
    300561,        --- Explosion (Scrapbone Trashtosser)
    299475,        --- B.O.R.K. (Scraphound)
    299535,        --- Scrap Blast (Pistonhead Blaster)
    298940,        --- Bolt Buster (Naeno Megacrash)
    297283,        --- Cave In (King Gobbamak)
    
    --- Awakened Lieutenant
    314309,        --- Dark Fury (Urg'roth, Breaker of Heroes)
    314467,        --- Volatile Rupture (Voidweaver Mal'thir)
    314565,        --- Defiled Ground (Blood of the Corruptor)
}

--get the cooltip object (we dont use the convencional GameTooltip here)
local GameCooltip = GameCooltip2

local dc = combat:GetContainer(DETAILS_ATTRIBUTE_DAMAGE)
local format_func = Details:GetCurrentToKFunction()

local AllSpells = {}

for i, spellID in ipairs(spells) do
    local sourceNPC = dc:GetSpellSource(spellID)
    local source = dc:GetActor(sourceNPC)
    if (source) then
        local spell = source:GetSpell(spellID)
        if (spell and spell.targets[actor.nome]) then
            AllSpells[spellID] = spell.targets[actor.nome] or 0
        end
    end
end

local sortedList = {}
for spellID, total in pairs (AllSpells) do
    tinsert (sortedList, {spellID, total})
end
table.sort (sortedList, Details.Sort2)

local format_func = Details:GetCurrentToKFunction()
local max = 0

--build the tooltip
for i, t in ipairs (sortedList) do
    local spellID, total = unpack (t)
    if (total > 1) then
        max = math.max(max, total)
        local spellName, _, spellIcon = Details.GetSpellInfo (spellID)
        local spellSchool = _detalhes.spell_school_cache[spellName]
        local r, g, b = Details:GetSpellSchoolColor(spellSchool)
        
        GameCooltip:AddLine (spellName, format_func (_, total))
        GameCooltip:AddStatusBar (100*total/max, 1, r, g, b, .8, false, {value = 100, color = {.21, .21, .21, 0.8}})--, texture = [[Interface\AddOns\Details\images\bar_serenity]]})
        GameCooltip:AddIcon (spellIcon, 1, 1, _detalhes.tooltip.line_height, _detalhes.tooltip.line_height)
    end
end
3 Likes

:face_with_monocle:

1 Like

Or just dont use it if you dont like it. Just throwing that out there

1 Like

Whats the point? The game gives a death recap, if you want a more detailed one, any damage addon shows it.

I almost went blind by that wall of text

It’s not the same thing as a death recap.
There are cases where you can get hit by something that you could have avoided, but you don’t die. Then you have no info of what happened if things are messy enough.

That’s where this custom display gets handy.

2 Likes

@Urthol To be honnest, you should just pass by if it’s just to say this…
Instead of avoid an add-on that’s not “complete” nor a top one, he’s working to improve it.

If you can’t understand this, don’t just bump in.

@Dejarous the death recap offered by bli² is only readable for yourself, and in m+ most ppl don’t care at all. ElitismHelper pointed out the amount of failure damages (something important when you want to help newbies to get into high keys). Details can already tell damages taken, but not “fail damages taken”, which are, tbh, especially for your healer, really important.

1 Like

I had more written about my opinion of the addon itself but removed it. But thats a fair point

I think what you said about it is what inspired me to work on this custom display.

With it, you can keep the info for yourself, stop being an elitist and just try to improve by actively working on avoiding abilities listed by the display. /shrug

I’m just wondering if there is a way to know if a spell is or isn’t avoidable. That would be really much more elegant than this ugly list of IDs.
And since I basically got that list from elitismhelper, it only works with BFA dungeons. Which is sad.
It would be so much better if it also worked with raids and used some built-in API to discover avoidable spells.

Youve sold me on this addon. Personally i find ot easy enough to know whats avoidable and whats not, but that could be because I play healer and activly see people get damaged by mechanics.

This. Im all about this. This addon tilts me so hard, as 99٪ i know what killed me already

Edit: do you mean just now or before? Cause ive no memory of this

I don’t know if it’s you or someone else. But last week, I’ve seen someone complain about elitismhelper.
Then, this morning, while doing a M+, I saw that, indeed, you get that spamming everywhere at the wrong time, only for showing an irrelevant info.
I mean: it’s spamming “ Name got hit by X for Y.” It’s something that already happened, so it’s no longer relevant. It’s just spam. Elitist spam. And it prevents you from seeing what’s happening on screen.
So: not only someone in your group got hit but then you get a chat bubble that hide the action, so you can also get hit. That’s so stupid.
And then at the end of the dungeon, you have that recap of how much everyone failed, but without details on what was failed. So, it’s just a bonk on the head…

Then I thought: ok, but avoiding avoidable damage is something desirable. What if instead of the useless and annoying info ElitismHelper is giving, it was giving actual useful info ?

And that’s how I came to create this display.
But I’d really, really, like to find a way to get a list of avoidable abilities.

It works fine dont have spam report every sec just end of run nothing else to fix there.

How reporting avoidable DMG is not useful info?

Reporting the total overall damage is basically only useful for saying something like : “PlayerName failed that much”.

It’s much more useful to be able to tell:

  • on what abilities players failed
  • when they failed

ElitismHelper won’t say anything about both, unlike this custom display.

so more detailed version would be nice

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.