fix(Script/Spells): Prevent passive spells to proc Omen of Clarity (#9518)

This commit is contained in:
Noxies
2021-12-06 13:31:30 +01:00
committed by GitHub
parent 96236f8612
commit 9c178acd42

View File

@@ -191,11 +191,17 @@ class spell_dru_omen_of_clarity : public AuraScript
bool CheckProc(ProcEventInfo& eventInfo)
{
SpellInfo const* spellInfo = eventInfo.GetSpellInfo();
if (!spellInfo || spellInfo->IsPassive())
if (!spellInfo)
{
return true;
}
// Prevent passive spells to proc. (I.e shapeshift passives & passive talents)
if (spellInfo->IsPassive())
{
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);