Skip to content

Commit

Permalink
Added Buff Gains whitelist for Vanilla
Browse files Browse the repository at this point in the history
d87 committed Feb 20, 2024
1 parent 27cf58e commit b53476c
Showing 4 changed files with 98 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Aptechka.lua
Original file line number Diff line number Diff line change
@@ -1320,8 +1320,9 @@ function Aptechka:COMBAT_LOG_EVENT_UNFILTERED(event)
if spell.events[eventType] then
local GUID = spell.target == "SRC" and srcGUID or dstGUID
local unit = guidMap[GUID]
local iconSpellID = spell.forceIcon or spellID
if unit then
Aptechka:ForEachUnitFrame(unit, FrameLaunchFloatingIcon, spellID)
Aptechka:ForEachUnitFrame(unit, FrameLaunchFloatingIcon, iconSpellID)
end
end
end
94 changes: 93 additions & 1 deletion config.classic.lua
Original file line number Diff line number Diff line change
@@ -470,4 +470,96 @@ helpers.customBossAuras = {

}

helpers.importantTargetedCasts = {}
do
local AURA = helpers.BuffGainTypes.AURA
local CAST = helpers.BuffGainTypes.CAST
local HEAL = helpers.BuffGainTypes.HEAL
local POTION = helpers.BuffGainTypes.POTION
helpers.buffGainWhitelist = {
[23477] = HEAL, -- Major Healthstone
[11732] = HEAL,
[23476] = HEAL,

[5723] = HEAL, -- Greater Healthstone
[23474] = HEAL,
[23475] = HEAL,

[5720] = HEAL, -- Healthstone
[23472] = HEAL,
[23473] = HEAL,

[441] = POTION, -- Healing Potion
[2024] = POTION, -- Greater Healing Potion
[4042] = POTION, -- Superior Healing Potion
[17534] = POTION, -- Major Healing Potion


[7744] = AURA, -- Will of the Forsaken

-- WARLOCK
[20763] = AURA, -- Soulstone lvl 40 Rank
[20764] = AURA, -- Soulstone lvl 50 Rank
[20765] = AURA, -- Soulstone lvl 60 Rank

-- PRIEST
[10060] = AURA, -- Power Infusion

[402004] = AURA, -- Pain Suppression SoD
[425294] = AURA, -- DIspersion SoD


-- ROGUE
[2983] = AURA, -- Sprint
[8696] = AURA,
[11305] = AURA,

--[[DUP]] [5277] = AURA, -- Evasion
[26669] = AURA,
--[[DUP]] [31224] = AURA, -- Cloak of Shadows
[1787] = AURA, -- Stealth last rank

-- WARRIOR
[12292] = AURA, -- Death Wish
[1719] = AURA, -- Recklessness
--[[DUP]] [23920] = AURA, -- Spell Reflect
--[[DUP]] [402913] = AURA, -- Enraged Regeneration[SoD]

-- MAGE
[12042] = AURA, -- Arcane Power
[12472] = AURA, -- Icy Veins
[28682] = AURA, -- Combustion
[11958] = AURA, -- Ice Block
-- [66] = AURA, -- Invisiblity Fade
-- [32612] = AURA, -- Invisibility

[425169] = AURA, -- Icy Veins [SoD]

-- PALADIN
[31884] = AURA, -- Avenging Wrath
--[[DUP]] [498] = AURA, -- Divine Protection
--[[DUP]] [642] = AURA, -- Divine Shield
--[[DUP]] [1020] = AURA,
[1022] = AURA, -- Blessing of Protection
[5599] = AURA,
[10278] = AURA,
[1044] = AURA, -- Blessing of Freedom

-- DRUID
[5215] = AURA, -- Prowl 20 lvl rank
[6783] = AURA, -- Prowl 40 lvl rank
[9913] = AURA, -- Prowl 60 lvl rank
--[[DUP]] [22812] = AURA, -- Barkskin
--[[DUP]] [1850] = AURA, -- Dash
[9821] = AURA,
[33357] = AURA,
[417141] = AURA, -- Berserk[SoD]
--[[DUP]] [408024] = AURA, -- Survival Instincts[SoD]

-- HUNTER
[19574] = AURA, -- Bestial Wrath

}
end


helpers.importantTargetedCasts = {}
1 change: 1 addition & 0 deletions config.lua
Original file line number Diff line number Diff line change
@@ -123,6 +123,7 @@ helpers.BuffGainTypes = {
AURA = { events = set("SPELL_AURA_APPLIED", "SPELL_AURA_REFRESH"), target = "DST", scale = 1 },
CAST = { events = set("SPELL_CAST_SUCCESS"), target = "SRC", scale = 1 },
HEAL = { events = set("SPELL_HEAL"), target = "DST", scale = 1 },
POTION = { events = set("SPELL_HEAL"), target = "DST", scale = 1.2, forceIcon = 3447 }, -- 3447 - Healing Potion SPELL
}

config.templates = {
3 changes: 2 additions & 1 deletion config.tbc.lua
Original file line number Diff line number Diff line change
@@ -462,11 +462,12 @@ do
local AURA = helpers.BuffGainTypes.AURA
local CAST = helpers.BuffGainTypes.CAST
local HEAL = helpers.BuffGainTypes.HEAL
local POTION = helpers.BuffGainTypes.POTION
helpers.buffGainWhitelist = {
[27237] = HEAL, -- Master Healthstone
[27236] = HEAL,
[27235] = HEAL,
[28495] = HEAL, -- Super Healing Potion (TBC)
[28495] = POTION, -- Super Healing Potion (TBC)

[7744] = AURA, -- Will of the Forsaken

0 comments on commit b53476c

Please sign in to comment.