fix(Scripts/Spells): Prevent Omen of Clarity from procing from crafti… (#14910)

This commit is contained in:
Skjalf
2023-02-12 20:57:53 -03:00
committed by GitHub
parent 1694eec252
commit 35e993edc7

View File

@@ -207,6 +207,12 @@ class spell_dru_omen_of_clarity : public AuraScript
return false;
}
// Don't proc on crafting items.
if (spellInfo->HasEffect(SPELL_EFFECT_CREATE_ITEM))
{
return false;
}
if (eventInfo.GetTypeMask() & PROC_FLAG_DONE_SPELL_MELEE_DMG_CLASS)
{
return spellInfo->HasAttribute(SPELL_ATTR0_ON_NEXT_SWING) || spellInfo->HasAttribute(SPELL_ATTR0_ON_NEXT_SWING_NO_DAMAGE);