fix(Script/Spells): Prevent passive spells to proc Omen of Clarity (#9518)
This commit is contained in:
parent
96236f8612
commit
9c178acd42
1 changed files with 7 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue