From 92e73263e53fa765a753603a497ec8ce7b0367c3 Mon Sep 17 00:00:00 2001 From: Flamanis Date: Sat, 1 Jul 2023 22:26:11 -0500 Subject: [PATCH 1/3] Ignore vessel periodic damage --- core/parser.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/parser.lua b/core/parser.lua index d62e36d0..89e8fc5e 100755 --- a/core/parser.lua +++ b/core/parser.lua @@ -768,8 +768,8 @@ (not Details.in_group and sourceFlags and bitBand(sourceFlags, AFFILIATION_GROUP) ~= 0) ) ) then - --avoid Fel Armor, Undulating Maneuvers, and "Vessel of Seared Shadows" trinket from starting a combat. - if ((spellId == 387846 or spellId == 352561 or spellId == 401394) and sourceName == Details.playername) then + --avoid Fel Armor and Undulating Maneuvers from starting a combat. + if ((spellId == 387846 or spellId == 352561) and sourceName == Details.playername) then return end @@ -798,7 +798,8 @@ --111400 warlock's burning rush --368637 is buff from trinket "Scars of Fraternal Strife" which make the player bleed even out-of-combat --371070 is "Iced Phial of Corrupting Rage" effect triggers randomly, even out-of-combat - if (spellId == 111400 or spellId == 371070 or spellId == 368637) then + --401394 is "Vessel of Seared Shadows" trinket + if (spellId == 111400 or spellId == 371070 or spellId == 368637 or spellId == 401394) then return end From 1f6383929fced2962c0d8b2617c0627d8dc3b7bd Mon Sep 17 00:00:00 2001 From: Flamanis Date: Sun, 2 Jul 2023 10:14:47 -0500 Subject: [PATCH 2/3] Actually save to disk auto run code --- core/parser.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/core/parser.lua b/core/parser.lua index d62e36d0..cc159a7b 100755 --- a/core/parser.lua +++ b/core/parser.lua @@ -5902,6 +5902,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1 tinsert(_detalhes_global.exit_log, "9 - Saving Auto Run Code.") local saveAutoRunCode = function() Details222.AutoRunCode.OnLogout() + _detalhes_global.run_code = Details.run_code end xpcall(saveAutoRunCode, logSaverError) end) --end of saving data From c6f3f34af776150f4100cc312f5b6b22291e0e1f Mon Sep 17 00:00:00 2001 From: Flamanis Date: Sun, 2 Jul 2023 10:59:42 -0500 Subject: [PATCH 3/3] Move and change run_code save --- core/parser.lua | 1 - functions/autorun.lua | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/core/parser.lua b/core/parser.lua index cc159a7b..d62e36d0 100755 --- a/core/parser.lua +++ b/core/parser.lua @@ -5902,7 +5902,6 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1 tinsert(_detalhes_global.exit_log, "9 - Saving Auto Run Code.") local saveAutoRunCode = function() Details222.AutoRunCode.OnLogout() - _detalhes_global.run_code = Details.run_code end xpcall(saveAutoRunCode, logSaverError) end) --end of saving data diff --git a/functions/autorun.lua b/functions/autorun.lua index b16d245e..45c4db6b 100644 --- a/functions/autorun.lua +++ b/functions/autorun.lua @@ -92,5 +92,5 @@ function Details222.AutoRunCode.StartAutoRun() end function Details222.AutoRunCode.OnLogout() - Details.run_code = Details222.AutoRunCode.CodeTable + _detalhes_global.run_code = Details222.AutoRunCode.CodeTable end \ No newline at end of file