From 8539e3b3abf2797d6927559f78af834d922e67a8 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Wed, 3 Nov 2021 13:05:55 -0300 Subject: [PATCH] Merging fixes from tbc --- Details-BCC.toc | 2 +- boot.lua | 2 +- core/parser.lua | 18 +++++++++++------- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/Details-BCC.toc b/Details-BCC.toc index 41b8d619..59432794 100644 --- a/Details-BCC.toc +++ b/Details-BCC.toc @@ -1,4 +1,4 @@ -## Interface: 20501 +## Interface: 20502 ## Title: Details! Damage Meter ## Notes: Essential tool to impress that chick in your raid. ## SavedVariables: _detalhes_global diff --git a/boot.lua b/boot.lua index cf0c123f..9b8968bc 100644 --- a/boot.lua +++ b/boot.lua @@ -8,7 +8,7 @@ _detalhes.build_counter = 9108 _detalhes.alpha_build_counter = 9108 --if this is higher than the regular counter, use it instead - _detalhes.bcc_counter = 28 + _detalhes.bcc_counter = 29 _detalhes.dont_open_news = true _detalhes.game_version = version _detalhes.userversion = version .. _detalhes.build_counter diff --git a/core/parser.lua b/core/parser.lua index 5b07ed42..ccc81c5e 100755 --- a/core/parser.lua +++ b/core/parser.lua @@ -433,14 +433,18 @@ Details.SpecialSpellActorsName = {} --add sanguine affix - Details.SpecialSpellActorsName[Details.SanguineHealActorName] = SPELLID_SANGUINE_HEAL + if (not isTBC) then + if (Details.SanguineHealActorName) then + Details.SpecialSpellActorsName[Details.SanguineHealActorName] = SPELLID_SANGUINE_HEAL + end - --add kyrian weapons - Details.SpecialSpellActorsName[Details.KyrianWeaponActorName] = Details.KyrianWeaponActorSpellId - for spellId in pairs(Details.KyrianWeaponSpellIds) do - local spellName = GetSpellInfo(spellId) - if (spellName) then - Details.SpecialSpellActorsName[spellName] = spellId + --add kyrian weapons + Details.SpecialSpellActorsName[Details.KyrianWeaponActorName] = Details.KyrianWeaponActorSpellId + for spellId in pairs(Details.KyrianWeaponSpellIds) do + local spellName = GetSpellInfo(spellId) + if (spellName) then + Details.SpecialSpellActorsName[spellName] = spellId + end end end