mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 10:55:43 +00:00
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)
|
||||
{
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user