Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Commit

Permalink
#7 Add trackable own casts ("OwnCastsDoneByPartyMembers") for party m…
Browse files Browse the repository at this point in the history
…embers
  • Loading branch information
onechiporenko committed Nov 1, 2020
1 parent ac01185 commit cef5b2a
Show file tree
Hide file tree
Showing 9 changed files with 376 additions and 318 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
### v1.3.0

* #7 Add trackable own casts ("OwnCastsDoneByPartyMembers") for party members
* #26 Add icons for the new affixes

### v1.2.1
Expand Down
3 changes: 1 addition & 2 deletions Events.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,9 @@ function MyDungeonsBook:COMBAT_LOG_EVENT_UNFILTERED()
self:TrackBfASpecificCastDoneByPartyMembers(srcName, spellId);
self:TrackSLSpecificCastDoneByPartyMembers(srcName, spellId);
self:TrackAllCastsDoneByPartyMembers(srcName, srcGUID, spellId);
self:TrackBfAOwnCastDoneByPartyMembers(srcName, spellId, dstName);
self:TrackSLOwnCastDoneByPartyMembers(srcName, spellId, dstName);
self:TrackBfASpecificItemUsedByPartyMembers(srcName, spellId);
self:TrackSLSpecificItemUsedByPartyMembers(srcName, spellId);
self:TrackOwnCastDoneByPartyMembers(srcName, spellId, dstName);
end
if ((subEventPrefix:match("^SPELL") or subEventPrefix:match("^RANGE")) and subEventSuffix == "DAMAGE") then
local spellId, _, _, amount, overkill = select(12, CombatLogGetCurrentEventInfo());
Expand Down
284 changes: 0 additions & 284 deletions Mechanics/BfA/Common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -409,286 +409,6 @@ local BfASpecificCastsDoneByPartyMembers = {
[265320] = true, -- Throw
};

-- Thanks to NNoggie https://wago.io/PartyCDs
local BfAOwnCastsDoneByPartyMembers = {
--[[
DAMAGE
]]
-- DH
[258925] = true, -- Fel Barrage
[191427] = true, -- Metamorphosis
[206491] = true, -- Nemesis
-- DK
[275699] = true, -- Apocalypse
[42650] = true, -- Army of the Dead
[152279] = true, -- Breath of Sindragosa
[47568] = true, -- Empower Rune Weapoen
[279302] = true, -- Frostwyrm's Fury
[49206] = true, -- Summon Gargoyle
[207289] = true, -- Unholy Frenzy
-- Druid
[106951] = true, -- Berserk
[194223] = true, -- Celestial Alignm
[202770] = true, -- Fury of Elune
[102560] = true, -- Incarnation: Chosen of Elune
[102543] = true, -- Incarnation: King of the Jungle
-- Hunter
[193530] = true, -- Aspect of the Wild
[19574] = true, -- Bestial Wrath
[266779] = true, -- Coordinated Assault
[201430] = true, -- Stampede
[288613] = true, -- Trueshot
-- Mage
[12042] = true, -- Arcane Power
[190319] = true, -- Combustion
[12472] = true, -- Icy Veins
[55342] = true, -- Mirror Image
[202719] = true, -- Arcane Torrent
[50613] = true, -- Arcane Torrent
[80483] = true, -- Arcane Torrent
[28730] = true, -- Arcane Torrent
[129597] = true, -- Arcane Torrent
[155145] = true, -- Arcane Torrent
[232633] = true, -- Arcane Torrent
[25046] = true, -- Arcane Torrent
[69179] = true, -- Arcane Torrent
-- Monk
[123904] = true, -- Invoke Xuen, the White Tiger
[152173] = true, -- Serenity
[137639] = true, -- Storm, Earth, and Fire
[115080] = true, -- Touch of Death
-- Paladin
[31884] = true, -- Avenging Wrath
[231895] = true, -- Crusade
[152262] = true, -- Seraphim
-- Priest
[280711] = true, -- Dark Ascension
[193223] = true, -- Surrender to Madness
[34433] = true, -- Shadowfiend
[123040] = true, -- Mindbender
[200174] = true, -- Mindbender
-- Rogue
[13750] = true, -- Adrenaline Rush
[51690] = true, -- Killing Spree
[121471] = true, -- Shadow Blades
[79140] = true, -- Vendetta
-- Shaman
[51533] = true, -- Feral Spirit
[192249] = true, -- Storm Elemental
[191634] = true, -- Stormkeeper
[114050] = true, -- Ascendance (Elem)
[114051] = true, -- Ascendance (Enhancement)
-- Warlock
[113858] = true, -- Dark Soul: Instability
[113860] = true, -- Dark Soul: Misery
[267217] = true, -- Nether Portal
[205180] = true, -- Summon Darkglare
[265187] = true, -- Summon Demonic Tyrant
[1122] = true, -- Summon Infernal
-- Warrior
[107574] = true, -- Avatar
[46924] = true, -- Bladestorm
[227847] = true, -- Bladestorm
[1719] = true, -- Recklessness
--[[
EXTERNAL
]]
--Druid
[102342] = true, -- Ironbark
-- Monk
[116849] = true, -- Life Cocoon
-- Paladin
[1022] = true, -- Blessing of Protection
[6940] = true, -- Blessing of Sacrifice
[204018] = true, -- Blessing of Spellwarding
-- Priest
[47788] = true, -- Guardian Spirit
[33206] = true, -- Pain Supression
--[[
HEALING
]]
-- Druid
[33891] = true, -- Incarnation: Tree of Life
[740] = true, -- Tranquility
-- Monk
[198664] = true, -- Invoke Chi-Ji, the Red Crane
[115310] = true, -- Revival
-- Paladin
[216331] = true, -- Avenging Crusade
[31884] = true, -- Avenging Wrath
[105809] = true, -- Holy Avenger
[633] = true, -- Lay on Hands
[210191] = true, -- Word of Glory
-- Priest
[200183] = true, -- Apotheosis
[64843] = true, -- Divine Hymn
[246287] = true, -- Evangelism
[265202] = true, -- Holy Word: Salvation
[271466] = true, -- Luminous Barrier
[47536] = true, -- Rapture
[15286] = true, -- Vampiric Embrace
-- Shaman
[114052] = true, -- Ascendance (Restoration)
[198838] = true, -- Earthen Wall Totem
[108280] = true, -- Healing Tide Totem
--[[
IMMUNITY
]]
-- DH
[196555] = true, -- Netherwalk
-- Hunter
[186265] = true, -- Aspect of the Turtle
-- Mage
[45438] = true, -- Ice Block
-- Paladin
[642] = true, -- Divine Shield
-- Rogue
[31224] = true, -- Cloak of Shadows
--[[
PERSONAL
]]
-- DH
[198589] = true, -- Blur
-- DK
[48707] = true, -- Anti-Magic Shell
[48743] = true, -- Death Pact
[48792] = true, -- Icebound Fortitude
-- Druid
[22812] = true, -- Barkskin
[108238] = true, -- Renewal
[61336] = true, -- Survival Instinct
-- Hunter
[109304] = true, -- Exhilaration
[5384] = true, -- Feign Death
-- Mage
[235219] = true, -- Cold Snap
-- Monk
[122278] = true, -- Dampen Harm
[122783] = true, -- Diffuse Magic
[243435] = true, -- Fortifying Brew
[122281] = true, -- Healing Elixir
[122470] = true, -- Touch of Karma
-- Paladin
[498] = true, -- Divine Protection
[205191] = true, -- Eye for an Eye
[184662] = true, -- Shield of Vengeance
-- Priest
[19236] = true, -- Desperate Prayer
[47585] = true, -- Dispersion
-- Rogue
[5277] = true, -- Evasion/Riposte
[199754] = true, -- Evasion/Riposte
-- Shaman
[108271] = true, -- Astral Shift
-- Warlock
[108416] = true, -- Dark Pact
[104773] = true, -- Unending Resolve
-- Warrior
[118038] = true, -- Die by the Sword
[184364] = true, -- Enraged Regeneration
--[[
RAID CD
]]
-- DH
[196718] = true, -- Darkness
-- Paladin
[204150] = true, -- Aegis of Light
[31821] = true, -- Aura Mastery
-- Priest
[62618] = true, -- Power Word: Barrier
[64901] = true, -- Symbol of Hope
-- Shaman
[207399] = true, -- Ancestral Protection Totem
[98008] = true, -- Spirit Link Totem
-- Warrior
[97462] = true, -- Rallying Cry
--[[
TANK
]]
-- DH
[212084] = true, -- Fel Devastation
[204021] = true, -- Fiery Brand
[187827] = true, -- Metamorphosis
-- DK
[206931] = true, -- Blooddrinker
[194844] = true, -- Bonestorm
[274156] = true, -- Consumption
[49028] = true, -- Dancing Rune Weapon
[194679] = true, -- Rune Tap
[55233] = true, -- Vampiric Blood
-- Druid
[102558] = true, -- Incarnation: Guard
-- Monk
[115203] = true, -- Fortifying Brew
[132578] = true, -- Invoke Niuzao
[115176] = true, -- Zen Meditation
-- Paladin
[31850] = true, -- Ardent Defender
[86659] = true, -- Guardian of Ancient Kings
-- Warrior
[1160] = true, -- Demoralizing Shout
[12975] = true, -- Last Stand
[228920] = true, -- Ravager
[871] = true, -- Shield Wall
[23920] = true, -- Spell Reflection
--[[
RACE SPECIFIC
]]
-- Dark Iron Dwarf
[265221] = true, -- Fireblood
-- Draenei
[28880] = true, -- Gift of the Naaru
[59542] = true, -- Gift of the Naaru
[59543] = true, -- Gift of the Naaru
[59544] = true, -- Gift of the Naaru
[59545] = true, -- Gift of the Naaru
[59547] = true, -- Gift of the Naaru
[59548] = true, -- Gift of the Naaru
[121093] = true, -- Gift of the Naaru
-- Dwarf
[20594] = true, -- Stoneform
-- Gnome
[20589] = true, -- Escape Artist
-- Goblin
[69041] = true, -- Rocket Barrage
[69070] = true, -- Rocket Jump
-- Highmountain Tauren
[255654] = true, -- Bull Rush
-- Human
[59752] = true, -- Will to Survive
-- Kul Tiran
[287712] = true, -- Haymaker
-- Lightforged Draenei
[255647] = true, -- Light's Judgment
-- Mag'har Orc
[274738] = true, -- Ancestral Call
-- Mechgnome
[312924] = true, -- Hyper Organic Light Originator
-- Nightborne
[260364] = true, -- Arcane Pulse
-- Night Elf
[58984] = true, -- Shadowmeld
-- Orc
[20572] = true, -- Blood Fury
[33697] = true, -- Blood Fury
[33702] = true, -- Blood Fury
-- Pandaren
[107079] = true, -- Quaking Palm
-- Tauren
[20549] = true, -- War Stomp
-- Troll
[26297] = true, -- Berserking
-- Undead
[7744] = true, -- Will of the Forsaken
[20577] = true, -- Cannibalize
-- Vulpera
[312411] = true, -- Bag of Tricks
-- Worgen
[68992] = true, -- Darkflight
-- Zandalari Troll
[291944] = true, -- Regeneratin'
};

local BfASpecificItemsUsedByPartyMembers = {
[318378] = 169223, -- Ashjra'kamas, Shroud of Resolve
-- Warlock Health Stone
Expand Down Expand Up @@ -849,10 +569,6 @@ function MyDungeonsBook:TrackBfASpecificCastDoneByPartyMembers(unit, spellId)
self:TrackSpecificCastDoneByPartyMembers("BFA-CASTS-DONE-BY-PARTY-MEMBERS", BfASpecificCastsDoneByPartyMembers, unit, spellId);
end

function MyDungeonsBook:TrackBfAOwnCastDoneByPartyMembers(sourceUnitName, spellId, targetUnitName)
self:TrackOwnCastDoneByPartyMembers("BFA-OWN-CASTS-DONE-BY-PARTY-MEMBERS", BfAOwnCastsDoneByPartyMembers, sourceUnitName, spellId, targetUnitName);
end

function MyDungeonsBook:TrackBfASpecificItemUsedByPartyMembers(unit, spellId)
self:TrackSpecificItemUsedByPartyMembers("BFA-ITEM-USED-BY-PARTY-MEMBERS", BfASpecificItemsUsedByPartyMembers, unit, spellId);
end
Expand Down
Loading

0 comments on commit cef5b2a

Please sign in to comment.