From 66ca61025d932f93291522cacfc2934f7d61a506 Mon Sep 17 00:00:00 2001 From: r0m1ntik <40755539+r0m1ntik@users.noreply.github.com> Date: Mon, 22 Mar 2021 03:40:50 +0100 Subject: [PATCH] fix(Core/Spell): Val'anyr periodic healings proc and move to new proc system (#4216) --- data/sql/updates/pending_db_world/rev_1609870134525124000.sql | 2 ++ src/server/scripts/Spells/spell_item.cpp | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) create mode 100644 data/sql/updates/pending_db_world/rev_1609870134525124000.sql diff --git a/data/sql/updates/pending_db_world/rev_1609870134525124000.sql b/data/sql/updates/pending_db_world/rev_1609870134525124000.sql new file mode 100644 index 000000000..85fe8dc8e --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1609870134525124000.sql @@ -0,0 +1,2 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1609870134525124000'); +UPDATE `spell_proc_event` SET `procFlags` = 279552|1024|16384|262144, `procEx` = 786432|262144|524288 WHERE `entry` = 64411; diff --git a/src/server/scripts/Spells/spell_item.cpp b/src/server/scripts/Spells/spell_item.cpp index b417e9021..53ef4de8f 100644 --- a/src/server/scripts/Spells/spell_item.cpp +++ b/src/server/scripts/Spells/spell_item.cpp @@ -1764,10 +1764,6 @@ public: bool CheckProc(ProcEventInfo& eventInfo) { - SpellInfo const* spellInfo = eventInfo.GetHealInfo()->GetSpellInfo(); - if (!spellInfo || !spellInfo->HasEffect(SPELL_EFFECT_HEAL)) - return false; - return eventInfo.GetHealInfo() && eventInfo.GetHealInfo()->GetHeal() > 0; }