Advertisement
Cistoran

Untitled

Mar 5th, 2019
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.99 KB | None | 0 0
  1. --------------------------------------------------------------------------------
  2. -- BEGIN TRACKED SPELLS
  3. --------------------------------------------------------------------------------
  4.  
  5. ZT.typeToTrackedSpells = {}
  6.  
  7. ZT.typeToTrackedSpells["INTERRUPT"] = {
  8. {spellID=183752, class=DH, baseCD=15}, -- Consume Magic
  9. {spellID=47528, class=DK, baseCD=15}, -- Mind Freeze
  10. {spellID=91802, specs={DK.Unholy}, baseCD=30}, -- Shambling Rush
  11. {spellID=78675, specs={Druid.Balance}, baseCD=60}, -- Solar Beam
  12. {spellID=106839, specs={Druid.Feral,Druid.Guardian}, baseCD=15}, -- Skull Bash
  13. {spellID=147362, specs={Hunter.BM, Hunter.MM}, baseCD=24}, -- Counter Shot
  14. {spellID=187707, specs={Hunter.SV}, baseCD=15}, -- Muzzle
  15. {spellID=2139, class=Mage, baseCD=24}, -- Counter Spell
  16. {spellID=116705, specs={Monk.WW, Monk.BRM}, baseCD=15}, -- Spear Hand Strike
  17. {spellID=96231, specs={Paladin.Prot, Paladin.Ret}, baseCD=15}, -- Rebuke
  18. {spellID=15487, specs={Priest.Shadow}, baseCD=45, modTalents={[41]=StaticMod("sub", 15)}}, -- Silence
  19. {spellID=1766, class=Rogue, baseCD=15}, -- Kick
  20. {spellID=57994, class=Shaman, baseCD=12}, -- Wind Shear
  21. {spellID=19647, class=Warlock, baseCD=24}, -- Spell Lock
  22. {spellID=6552, class=Warrior, baseCD=15}, -- Pummel
  23. }
  24.  
  25. ZT.typeToTrackedSpells["HARDCC"] = {
  26. {spellID=179057, specs={DH.Havoc}, baseCD=60, modTalents={[61]=StaticMod("mul", 0.666667)}}, -- Chaos Nova
  27. {spellID=119381, class=Monk, baseCD=60, modTalents={[41]=StaticMod("sub", 10)}}, -- Leg Sweep
  28. {spellID=192058, class=Shaman, baseCD=60, modTalents={[33]=modCapTotem}}, -- Capacitor Totem
  29. {spellID=30283, class=Warlock, baseCD=60, modTalents={[51]=StaticMod("sub", 15)}}, -- Shadowfury
  30. {spellID=46968, specs={Warrior.Prot}, baseCD=40, modTalents={[52]=modShockwave}}, -- Shockwave
  31. {spellID=20549, race="Tauren", baseCD=90}, -- War Stomp
  32. {spellID=255654, race="HighmountainTauren", baseCD=120}, -- Bull Rush
  33. }
  34.  
  35. ZT.typeToTrackedSpells["SOFTCC"] = {
  36. {spellID=202138, specs={DH.Veng}, baseCD=90, reqTalents={53}}, -- Sigil of Chains
  37. {spellID=207684, specs={DH.Veng}, baseCD=90}, -- Sigil of Misery
  38. {spellID=202137, specs={DH.Veng}, baseCD=60, modTalents={[52]=StaticMod("mul", 0.8)}}, -- Sigil of Silence
  39. {spellID=108199, specs={DK.Blood}, baseCD=120, modTalents={[52]=StaticMod("sub", 30)}}, -- Gorefiend's Grasp
  40. {spellID=207167, specs={DK.Frost}, baseCD=60, reqTalents={33}}, -- Blinding Sleet
  41. {spellID=132469, class=Druid, baseCD=30, reqTalents={43}}, -- Typhoon
  42. {spellID=102359, class=Druid, baseCD=30, reqTalents={42}}, -- Mass Entanglement
  43. {spellID=99, specs={Druid.Guardian}, baseCD=30}, -- Incapacitating Roar
  44. {spellID=236748, specs={Druid.Guardian}, baseCD=30, reqTalents={22}}, -- Intimidating Roar
  45. {spellID=102793, specs={Druid.Resto}, baseCD=60}, -- Ursol's Vortex
  46. {spellID=109248, class=Hunter, baseCD=30, reqTalents={53}}, -- Binding Shot
  47. {spellID=116844, class=Monk, baseCD=45, reqTalents={43}}, -- Ring of Peace
  48. {spellID=8122, specs={Priest.Disc,Priest.Holy}, baseCD=60, modTalents={[41]=StaticMod("sub", 30)}}, -- Psychic Scream
  49. {spellID=8122, specs={Priest.Shadow}, baseCD=60}, -- Psychic Scream
  50. {spellID=204263, specs={Priest.Disc,Priest.Holy}, baseCD=45, reqTalents={43}}, -- Shining Force
  51. {spellID=51490, specs={Shaman.Ele}, baseCD=45}, -- Thunderstorm
  52. }
  53.  
  54. ZT.typeToTrackedSpells["STHARDCC"] = {
  55. {spellID=211881, specs={DH.Havoc}, baseCD=30, reqTalents={63}}, -- Fel Eruption
  56. {spellID=221562, specs={DK.Blood}, baseCD=45}, -- Asphyxiate
  57. {spellID=108194, specs={DK.Unholy}, baseCD=45, reqTalents={33}}, -- Asphyxiate
  58. {spellID=108194, specs={DK.FrostDK}, baseCD=45, reqTalents={32}}, -- Asphyxiate
  59. {spellID=5211, class=Druid, baseCD=50, reqTalents={41}}, -- Mighty Bash
  60. {spellID=19577, specs={Hunter.BM,Hunter.Surv}, baseCD=60}, -- Intimidation
  61. {spellID=853, specs={Paladin.Holy}, baseCD=60, modTalents={[31]=CastDeltaMod(275773, -10)}}, -- Hammer of Justice
  62. {spellID=853, specs={Paladin.Prot}, baseCD=60, modTalents={[31]=CastDeltaMod(275779, -6)}}, -- Hammer of Justice
  63. {spellID=853, specs={Paladin.Ret}, baseCD=60}, -- Hammer of Justice
  64. {spellID=88625, specs={Priest.Holy}, baseCD=60, reqTalents={42}, mods=CastDeltaMod(585, -4), modTalents={[71]=CastDeltaMod(585, -1.333333)}}, -- Holy Word: Chastise
  65. {spellID=64044, specs={Priest.Shadow}, baseCD=45, reqTalents={43}}, -- Psychic Horror
  66. {spellID=6789, class=Warlock, baseCD=45, reqTalents={52}}, -- Mortal Coil
  67. {spellID=107570, specs={Warrior.Prot}, baseCD=30, reqTalents={53}}, -- Storm Bolt
  68. {spellID=107570, specs={Warrior.Arms,Warrior.Fury}, baseCD=30, reqTalents={23}}, -- Storm Bolt
  69. }
  70.  
  71. ZT.typeToTrackedSpells["STSOFTCC"] = {
  72. {spellID=217832, class=DH, baseCD=45}, -- Imprison
  73. {spellID=2094, specs={Rogue.Sin,Rogue.Sub}, baseCD=120}, -- Blind
  74. {spellID=2094, specs={Rogue.Outlaw}, baseCD=120, modTalents={[52]=StaticMod("sub", 30)}}, -- Blind
  75. {spellID=115078, class=Monk, baseCD=45}, -- Paralysis
  76. {spellID=187650, class=Hunter, baseCD=30}, -- Freezing Trap
  77. }
  78.  
  79. ZT.typeToTrackedSpells["DISPEL"] = {
  80. {spellID=202719, race="BloodElf", class=DH, baseCD=90}, -- Arcane Torrent
  81. {spellID=50613, race="BloodElf", class=DK, baseCD=90}, -- Arcane Torrent
  82. {spellID=80483, race="BloodElf", class=Hunter, baseCD=90}, -- Arcane Torrent
  83. {spellID=28730, race="BloodElf", class=Mage, baseCD=90}, -- Arcane Torrent
  84. {spellID=129597, race="BloodElf", class=Monk, baseCD=90}, -- Arcane Torrent
  85. {spellID=155145, race="BloodElf", class=Paladin, baseCD=90}, -- Arcane Torrent
  86. {spellID=232633, race="BloodElf", class=Priest, baseCD=90}, -- Arcane Torrent
  87. {spellID=25046, race="BloodElf", class=Rogue, baseCD=90}, -- Arcane Torrent
  88. {spellID=28730, race="BloodElf", class=Warlock, baseCD=90}, -- Arcane Torrent
  89. {spellID=69179, race="BloodElf", class=Warrior, baseCD=90}, -- Arcane Torrent
  90. {spellID=32375, class=Priest, baseCD=45}, -- Mass Dispel
  91. }
  92.  
  93. ZT.typeToTrackedSpells["DEFMDISPEL"] = {
  94. {spellID=88423, specs={Druid.Resto}, baseCD=8, mods=DispelMod(88423), ignoreCast=true}, -- Nature's Cure
  95. {spellID=115450, specs={Monk.MW}, baseCD=8, mods=DispelMod(115450), ignoreCast=true}, -- Detox
  96. {spellID=4987, specs={Paladin.Holy}, baseCD=8, mods=DispelMod(4987), ignoreCast=true}, -- Cleanse
  97. {spellID=527, specs={Priest.Disc,Priest.Holy}, baseCD=8, mods=DispelMod(527), ignoreCast=true}, -- Purify
  98. {spellID=77130, specs={Shaman.Resto}, baseCD=8, mods=DispelMod(77130), ignoreCast=true}, -- Purify Spirit
  99. }
  100.  
  101. ZT.typeToTrackedSpells["EXTERNAL"] = {
  102. {spellID=102342, specs={Druid.Resto}, baseCD=60, modTalents={[62]=StaticMod("sub", 15)}}, -- Ironbark
  103. {spellID=33206, specs={Priest.Disc}, baseCD=180}, -- Pain Supression
  104. {spellID=47788, specs={Priest.Holy}, baseCD=180, modTalents={[32]=modGuardianSpirit}}, -- Guardian Spirit
  105. {spellID=6940, specs={Paladin.Holy,Paladin.Prot}, baseCD=120}, -- Blessing of Sacrifice
  106. {spellID=116849, specs={Monk.MW}, baseCD=120}, -- Life Cocoon
  107. {spellID=1022, specs={Paladin.Holy,Paladin.Ret}, baseCD=300}, -- Blessing of Protection
  108. {spellID=1022, specs={Paladin.Prot}, baseCD=300, reqTalents={41,42}}, -- Blessing of Protection
  109. {spellID=204018, specs={Paladin.Prot}, baseCD=180, reqTalents={43}}, -- Blessing of Spellwarding
  110. }
  111.  
  112. ZT.typeToTrackedSpells["HEALING"] = {
  113. {spellID=740, specs={Druid.Resto}, baseCD=180, modTalents={[61]=StaticMod("sub", 60)}}, -- Tranquility
  114. {spellID=115310, specs={Monk.MW}, baseCD=180}, -- Revival
  115. {spellID=31821, specs={Paladin.Holy}, baseCD=180}, -- Aura Mastery
  116. {spellID=216331, specs={Paladin.Holy}, baseCD=120, reqTalents={62}}, -- Avenging Crusader
  117. {spellID=105809, specs={Paladin.Holy}, baseCD=90, reqTalents={53}}, -- Holy Avenger
  118. {spellID=633, specs={Paladin.Holy}, baseCD=600, modTalents={[21]=StaticMod("mul", 0.7)}}, -- Lay on Hands
  119. {spellID=633, specs={Paladin.Prot,Paladin.Ret}, baseCD=600, modTalents={[51]=StaticMod("mul", 0.7)}}, -- Lay on Hands
  120. {spellID=210191, specs={Paladin.Ret}, baseCD=60, reqTalents={63}}, -- Word of Glory
  121. {spellID=47536, specs={Priest.Disc}, baseCD=90}, -- Rapture
  122. {spellID=246287, specs={Priest.Disc}, baseCD=75, reqTalents={73}}, -- Evangelism
  123. {spellID=62618, specs={Priest.Disc}, baseCD=180, reqTalents={71,73}}, -- Power Word: Barrier
  124. {spellID=271466, specs={Priest.Disc}, baseCD=180, reqTalents={72}}, -- Luminous Barrier
  125. {spellID=64843, specs={Priest.Holy}, baseCD=180}, -- Divine Hymn
  126. {spellID=200183, specs={Priest.Holy}, baseCD=120, reqTalents={72}}, -- Apotheosis
  127. {spellID=265202, specs={Priest.Holy}, baseCD=720, reqTalents={73}, mods={CastDeltaMod(34861,-30), CastDeltaMod(2050,-30)}}, -- Holy Word: Salvation
  128. {spellID=15286, specs={Priest.Shadow}, baseCD=120, modTalents={[22]=StaticMod("sub", 45)}}, -- Vampiric Embrace
  129. {spellID=108280, specs={Shaman.Resto}, baseCD=180}, -- Healing Tide Totem
  130. {spellID=98008, specs={Shaman.Resto}, baseCD=180}, -- Spirit Link Totem
  131. {spellID=198838, specs={Shaman.Resto}, baseCD=60, reqTalents={42}}, -- Earthen Wall Totem
  132. {spellID=207399, specs={Shaman.Resto}, baseCD=300, reqTalents={43}}, -- Ancestral Protection Totem
  133. {spellID=114052, specs={Shaman.Resto}, baseCD=180, reqTalents={73}}, -- Ascendance
  134. {spellID=196718, specs={DH.Havoc}, baseCD=180}, -- Darkness
  135. {spellID=97462, class=Warrior, baseCD=180}, -- Rallying Cry
  136. }
  137.  
  138. ZT.typeToTrackedSpells["UTILITY"] = {
  139. {spellID=205636, specs={Druid.Balance}, baseCD=60, reqTalents={13}}, -- Force of Nature (Treants)
  140. {spellID=73325, class=Priest, baseCD=90}, -- Leap of Faith
  141. {spellID=114018, class=Rogue, baseCD=360}, -- Shroud of Concealment
  142. {spellID=29166, specs={Druid.Balance,Druid.Resto}, baseCD=180}, -- Innervate
  143. {spellID=64901, specs={Priest.Holy}, baseCD=300}, -- Symbol of Hope
  144. }
  145.  
  146. ZT.typeToTrackedSpells["PERSONAL"] = {
  147. {spellID=198589, specs={DH.Havoc}, baseCD=60, mods=EventRemainingMod("SPELL_AURA_APPLIED", 212800, 60)}, -- Blur
  148. {spellID=187827, specs={DH.Veng}, baseCD=180}, -- Metamorphosis
  149. {spellID=48707, specs={DK.Blood}, baseCD=60, modTalents={[42]=StaticMod("sub", 15)}}, -- Anti-Magic Shell
  150. {spellID=48707, specs={DK.Frost,DK.Unholy}, baseCD=60}, -- Anti-Magic Shell
  151. {spellID=48743, specs={DK.Frost,DK.Unholy}, baseCD=120, reqTalents={53}}, -- Death Pact
  152. {spellID=48792, class=DK, baseCD=180}, -- Icebound Fortitude
  153. {spellID=55233, specs={DK.Blood}, baseCD=90, modTalents={[72]=ResourceSpendingMods(DK.Blood, 0.1)}}, -- Vampiric Blood
  154. {spellID=22812, specs={Druid.Balance,Druid.Guardian,Druid.Resto}, baseCD=60}, -- Barkskin
  155. {spellID=61336, specs={Druid.Feral,Druid.Guardian}, baseCD=180}, -- Survival Instincts
  156. {spellID=109304, class=Hunter, baseCD=120}, -- Exhilaration
  157. {spellID=235219, specs={Mage.Frost}, baseCD=300}, -- Cold Snap
  158. {spellID=122278, class=Monk, baseCD=120, reqTalents={53}}, -- Dampen Harm
  159. {spellID=122783, specs={Monk.MW, Monk.WW}, baseCD=90, reqTalents={52}}, -- Diffuse Magic
  160. {spellID=115203, specs={Monk.BRM}, baseCD=420}, -- Fortifying Brew
  161. {spellID=115176, specs={Monk.BRM}, baseCD=300}, -- Zen Meditation
  162. {spellID=243435, specs={Monk.MW}, baseCD=90}, -- Fortifying Brew
  163. {spellID=122470, specs={Monk.WW}, baseCD=90}, -- Touch of Karma
  164. {spellID=498, specs={Paladin.Holy}, baseCD=60}, -- Divine Protection
  165. {spellID=31850, specs={Paladin.Prot}, baseCD=120}, -- Ardent Defender
  166. {spellID=86659, specs={Paladin.Prot}, baseCD=300}, -- Guardian of the Ancient Kings
  167. {spellID=184662, specs={Paladin.Ret}, baseCD=120}, -- Shield of Vengeance
  168. {spellID=205191, specs={Paladin.Ret}, baseCD=60, reqTalents={53}}, -- Eye for an Eye
  169. {spellID=19236, specs={Priest.Disc, Priest.Holy}, baseCD=90}, -- Desperate Prayer
  170. {spellID=47585, specs={Priest.Shadow}, baseCD=120}, -- Dispersion
  171. {spellID=108271, class=Shaman, baseCD=90}, -- Astral Shift
  172. {spellID=104773, class=Warlock, baseCD=180}, -- Unending Resolve
  173. {spellID=118038, specs={Warrior.Arms}, baseCD=180}, -- Die by the Sword
  174. {spellID=184364, specs={Warrior.Fury}, baseCD=120}, -- Enraged Regeneration
  175. {spellID=12975, specs={Warrior.Prot}, baseCD=180, modTalents={[43]=StaticMod("sub", 60)}}, -- Last Stand
  176. {spellID=871, specs={Warrior.Prot}, baseCD=240}, -- Shield Wall
  177. }
  178.  
  179. ZT.typeToTrackedSpells["IMMUNITY"] = {
  180. {spellID=196555, specs={DH.Havoc}, baseCD=120, reqTalents={43}}, -- Netherwalk
  181. {spellID=186265, class=Hunter, baseCD=180, modTalents={[51]=StaticMod("mul", 0.8)}}, -- Aspect of the Turtle
  182. {spellID=45438, specs={Mage.Arcane,Mage.Fire}, baseCD=240}, -- Ice Block
  183. {spellID=45438, specs={Mage.Frost}, baseCD=240, mods=CastRemainingMod(235219, 0)}, -- Ice Block
  184. {spellID=642, class=Paladin, baseCD=300}, -- Divine Shield
  185. {spellID=31224, class=Rogue, baseCD=120}, -- Cloak of Shadows
  186. }
  187.  
  188. ZT.typeToTrackedSpells["DAMAGE"] = {
  189. {spellID=191427, specs={DH.Havoc}, baseCD=240}, -- Metamorphosis
  190. {spellID=258925, specs={DH.Havoc}, baseCD=60, reqTalents={33}}, -- Fel Barrage
  191. {spellID=206491, specs={DH.Havoc}, baseCD=120, reqTalents={73}}, -- Nemesis
  192. {spellID=279302, specs={DK.Frost}, baseCD=180, reqTalents={63}}, -- Frostwyrm's Fury
  193. {spellID=152279, specs={DK.Frost}, baseCD=120, reqTalents={73}}, -- Breath of Sindragosaa
  194. {spellID=42650, specs={DK.Unholy}, baseCD=480}, -- Army of the Dead
  195. {spellID=49206, specs={DK.Unholy}, baseCD=180, reqTalents={73}}, -- Summon Gargoyle
  196. {spellID=207289, specs={DK.Unholy}, baseCD=75, reqTalents={72}}, -- Unholy Frenzy
  197. {spellID=194223, specs={Druid.Balance}, baseCD=180, reqTalents={51,52}}, -- Celestial Alignment
  198. {spellID=102560, specs={Druid.Balance}, baseCD=180, reqTalents={53}}, -- Incarnation: Chosen of Elune
  199. {spellID=102543, specs={Druid.Feral}, baseCD=180, reqTalents={53}}, -- Incarnation: King of the Jungle
  200. {spellID=19574, specs={Hunter.BM}, baseCD=90}, -- Bestial Wrath
  201. {spellID=193530, specs={Hunter.BM}, baseCD=120}, -- Aspect of the Wild
  202. {spellID=201430, specs={Hunter.BM}, baseCD=180, reqTalents={63}}, -- Stampede
  203. {spellID=193526, specs={Hunter.MM}, baseCD=180}, -- Trueshot
  204. {spellID=266779, specs={Hunter.SV}, baseCD=120}, -- Coordinated Assault
  205. {spellID=12042, specs={Mage.Arcane}, baseCD=90}, -- Arcane Power
  206. {spellID=190319, specs={Mage.Fire}, baseCD=120}, -- Combustion
  207. {spellID=12472, specs={Mage.Frost}, baseCD=180}, -- Icy Veins
  208. {spellID=55342, class=Mage, baseCD=120, reqTalents={32}}, -- Mirror Image
  209. {spellID=115080, specs={Monk.WW}, baseCD=120}, -- Touch of Death
  210. {spellID=123904, specs={Monk.WW}, baseCD=180, reqTalents={63}}, -- Xuen
  211. {spellID=137639, specs={Monk.WW}, baseCD=90, reqTalents={71, 72}}, -- Storm, Earth, and Fire
  212. {spellID=152173, specs={Monk.WW}, baseCD=90, reqTalents={73}}, -- Serenity
  213. {spellID=31884, specs={Paladin.Ret}, baseCD=120, reqTalents={71,73}}, -- Avenging Wrath
  214. {spellID=231895, specs={Paladin.Ret}, baseCD=120, reqTalents={72}}, -- Crusade
  215. {spellID=280711, specs={Priest.Shadow}, baseCD=60, reqTalents={72}}, -- Dark Ascension
  216. {spellID=193223, specs={Priest.Shadow}, baseCD=240, reqTalents={73}}, -- Surrender to Madness
  217. {spellID=79140, specs={Rogue.Sin}, baseCD=120}, -- Vendetta
  218. {spellID=121471, specs={Rogue.Sub}, baseCD=180}, -- Shadow Blades
  219. {spellID=13750, specs={Rogue.Outlaw}, baseCD=180}, -- Adrenaline Rush
  220. {spellID=51690, specs={Rogue.Outlaw}, baseCD=120, reqTalents={73}}, -- Killing Spree
  221. {spellID=114050, specs={Shaman.Ele}, baseCD=180, reqTalents={73}}, -- Ascendance
  222. {spellID=114051, specs={Shaman.Enh}, baseCD=180, reqTalents={73}}, -- Ascendance
  223. {spellID=205180, specs={Warlock.Affl}, baseCD=180}, -- Summon Darkglare
  224. {spellID=113860, specs={Warlock.Affl}, baseCD=120, reqTalents={73}}, -- Dark Soul: Misery
  225. {spellID=265187, specs={Warlock.Demo}, baseCD=90}, -- Summon Demonic Tyrant
  226. {spellID=267217, specs={Warlock.Demo}, baseCD=180, reqTalents={73}}, -- Nether Portal
  227. {spellID=113858, specs={Warlock.Destro}, baseCD=120, reqTalents={73}}, -- Dark Soul: Instability
  228. {spellID=1122, specs={Warlock.Destro}, baseCD=180}, -- Summon Infernal
  229. {spellID=227847, specs={Warrior.Arms}, baseCD=90}, -- Bladestorm
  230. {spellID=107574, specs={Warrior.Arms}, baseCD=120, reqTalents={62}}, -- Avatar
  231. {spellID=1719, specs={Warrior.Fury}, baseCD=90}, -- Recklessness
  232. {spellID=46924, specs={Warrior.Fury}, baseCD=60, reqTalents={63}}, -- Bladestorm
  233. }
  234.  
  235. ZT.typeToTrackedSpells["TANK"] = {
  236. {spellID=49028, specs={DK.Blood}, baseCD=120}, -- Dancing Rune Weapon
  237. {spellID=194679, specs={DK.Blood}, baseCD=25, reqTalents={43}}, -- Rune Tap
  238. {spellID=194844, specs={DK.Blood}, baseCD=60, reqTalents={73}}, -- Bonestorm
  239. {spellID=204021, specs={DH.Veng}, baseCD=60}, -- Fiery Brand
  240. {spellID=1160, specs={Warrior.Prot}, baseCD=45}, -- Demoralizing Shout
  241. }
  242.  
  243. ZT.linkedSpellIDs = {
  244. [19647] = {119910, 132409, 115781}, -- Spell Lock
  245. [132469] = {61391}, -- Typhoon
  246. [191427] = {200166} -- Metamorphosis
  247. }
  248.  
  249. -- Building a complete list of tracked spells
  250. ZT.spellIDToInfo = {}
  251.  
  252. for type,spells in pairs(ZT.typeToTrackedSpells) do
  253. for _,spellInfo in ipairs(spells) do
  254. spellInfo.type = type
  255.  
  256. -- Creating a lookup map from list of valid specs
  257. if spellInfo.specs then
  258. local specsMap = {}
  259. for _,specID in ipairs(spellInfo.specs) do
  260. specsMap[specID] = true
  261. end
  262. spellInfo.specs = specsMap
  263. end
  264.  
  265. -- Placing single modifiers inside of a table (or creating an empty table if none)
  266. if spellInfo.mods then
  267. if spellInfo.mods.type then
  268. spellInfo.mods = { spellInfo.mods }
  269. end
  270. else
  271. spellInfo.mods = {}
  272. end
  273.  
  274. -- Placing single talent modifiers inside of a table (or creating an empty table if none)
  275. if spellInfo.modTalents then
  276. for talent,modifiers in pairs(spellInfo.modTalents) do
  277. if modifiers.type then
  278. spellInfo.modTalents[talent] = { modifiers }
  279. end
  280. end
  281. else
  282. spellInfo.modTalents = {}
  283. end
  284.  
  285. local spellID = spellInfo.spellID
  286. local allSpellInfo = ZT.spellIDToInfo[spellID]
  287. if not allSpellInfo then
  288. allSpellInfo = {
  289. type = type,
  290. variants = { spellInfo },
  291. }
  292. ZT.spellIDToInfo[spellID] = allSpellInfo
  293. else
  294. local variants = allSpellInfo.variants
  295. variants[#variants+1] = spellInfo
  296. end
  297. end
  298. end
  299.  
  300. for _,spellID in ipairs(ZT.blacklist) do
  301. local allSpellInfo = ZT.spellIDToInfo[spellID]
  302. if allSpellInfo then
  303. allSpellInfo.isBlacklisted = true
  304. end
  305. end
  306.  
  307. --------------------------------------------------------------------------------
  308. -- END TRACKED SPELLS
  309. --------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement