fix(Script/Spells): Prevent passive spells to proc Omen of Clarity (#9518)
This commit is contained in:
@@ -191,11 +191,17 @@ class spell_dru_omen_of_clarity : public AuraScript
|
|||||||
bool CheckProc(ProcEventInfo& eventInfo)
|
bool CheckProc(ProcEventInfo& eventInfo)
|
||||||
{
|
{
|
||||||
SpellInfo const* spellInfo = eventInfo.GetSpellInfo();
|
SpellInfo const* spellInfo = eventInfo.GetSpellInfo();
|
||||||
if (!spellInfo || spellInfo->IsPassive())
|
if (!spellInfo)
|
||||||
{
|
{
|
||||||
return true;
|
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)
|
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);
|
return spellInfo->HasAttribute(SPELL_ATTR0_ON_NEXT_SWING) || spellInfo->HasAttribute(SPELL_ATTR0_ON_NEXT_SWING_NO_DAMAGE);
|
||||||
|
|||||||
Reference in New Issue
Block a user