From ecc13faf86936ae6d833e8724ab156698efb6d79 Mon Sep 17 00:00:00 2001 From: Flamanis Date: Mon, 10 Jul 2023 02:03:18 -0500 Subject: [PATCH] Add individual bar for Neltharus Weapons. Weapons on final boss and the Burning Chain --- core/parser.lua | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/core/parser.lua b/core/parser.lua index da9cfb1f..83341146 100755 --- a/core/parser.lua +++ b/core/parser.lua @@ -405,6 +405,11 @@ [196917] = true, --light of the martyr [388009] = true, --blessing of spring [388012] = true, --blessing of summer + [384601] = true, --Anti Magic Bomb + [392171] = true, --Rose of the Vale + [392166] = true, --Azure Stone of Might + [379020] = true, --Wand of Negation + [372824] = true, --Burning Chains } --damage spells to ignore @@ -461,6 +466,19 @@ local AUTO_REGEN_PRECISION = 2 --todo: replace the amount of wasted resource by the amount of time the player "sitted" at max power + --Neltharus Weapons in Neltharus dungeon --Remove on 11.0 + --these detect the weapon actor by the damage spellId + Details.NeltharusWeaponSpellIds = { + [384601] = true, --Anti Magic Bomb + [392171] = true, --Rose of the Vale + [392166] = true, --Azure Stone of Might + [379020] = true, --Wand of Negation + [372824] = true, --Burning Chains + } + + Details.NeltharusWeaponActorName = "Neltharus Weapons" + Details.NeltharusWeaponActorSpellId = 377176 --for the icon: Blazing Aegis + --sanguine affix for m+ Details.SanguineHealActorName = GetSpellInfo(SPELLID_SANGUINE_HEAL) @@ -473,6 +491,9 @@ if (Details.SanguineHealActorName) then Details.SpecialSpellActorsName[Details.SanguineHealActorName] = SPELLID_SANGUINE_HEAL end + + --add Neltharus weapons + Details.SpecialSpellActorsName[Details.NeltharusWeaponActorName] = Details.NeltharusWeaponActorSpellId end ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- @@ -744,6 +765,10 @@ if (blessingSource) then sourceSerial, sourceName, sourceFlags = unpack(blessingSource) end + elseif (Details.NeltharusWeaponSpellIds[spellId]) then + sourceName = Details.NeltharusWeaponActorName + sourceFlags = 0x514 + sourceSerial = "Creature-0-3134-2289-28065-" .. spellId .. "-000164C698" end end