From 716a822b48218dd4dfa364dfb4d4f093ef957a42 Mon Sep 17 00:00:00 2001 From: NinjaPleezAC <121171014+NinjaPleezAC@users.noreply.github.com> Date: Thu, 26 Jan 2023 11:58:12 -0800 Subject: [PATCH] fix(Core/Unit): Petrified Lichen Guard effect (#14436) Co-authored-by: NinjaSoftworks <121171014+NinjaSoftworks@users.noreply.github.com> --- src/server/game/Entities/Unit/Unit.cpp | 2 +- src/server/game/Spells/SpellInfo.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index d9b177cd8..42c95ed74 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -9290,7 +9290,7 @@ bool Unit::HandleProcTriggerSpell(Unit* victim, uint32 damage, AuraEffect* trigg case SPELLFAMILY_SHAMAN: { // Lightning Shield (overwrite non existing triggered spell call in spell.dbc - if (auraSpellInfo->SpellFamilyFlags[0] & 0x400) + if (auraSpellInfo->SpellFamilyFlags[0] & 0x400 && auraSpellInfo->HasAttribute(SPELL_ATTR1_NO_THREAT)) { // Do not proc off from self-casted items if (Spell const* spell = eventInfo.GetProcSpell()) diff --git a/src/server/game/Spells/SpellInfo.cpp b/src/server/game/Spells/SpellInfo.cpp index 3a91dc994..84180db95 100644 --- a/src/server/game/Spells/SpellInfo.cpp +++ b/src/server/game/Spells/SpellInfo.cpp @@ -2253,7 +2253,7 @@ SpellSpecificType SpellInfo::LoadSpellSpecific() const { // family flags 10 (Lightning), 42 (Earth), 37 (Water), proc shield from T2 8 pieces bonus if (SpellFamilyFlags[1] & 0x420 - || SpellFamilyFlags[0] & 0x00000400 + || (SpellFamilyFlags[0] & 0x00000400 && HasAttribute(SPELL_ATTR1_NO_THREAT)) || Id == 23552) return SPELL_SPECIFIC_ELEMENTAL_SHIELD;