fix(Core/Unit): Petrified Lichen Guard effect (#14436)

Co-authored-by: NinjaSoftworks <121171014+NinjaSoftworks@users.noreply.github.com>
This commit is contained in:
NinjaPleezAC
2023-01-26 11:58:12 -08:00
committed by GitHub
parent aeed96f3b7
commit 716a822b48
2 changed files with 2 additions and 2 deletions

View File

@@ -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())

View File

@@ -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;