Core/Auras: fixed EquippedItemClass check

follow-up to 29c3b7d8f60c18e52ec22fec6de9abc3dc468166
This commit is contained in:
ariel- authored and Aokromes committed 2018-01-21 12:57:07 +01:00
1 parent cbb321a55e
commit fd92fa7451
1 file changed
+1 -1
+1 -1
View File
@@ -1801,7 +1801,7 @@ uint8 Aura::GetProcEffectMask(AuraApplication* aurApp, ProcEventInfo& eventInfo,
// do that only for passive spells
/// @todo this needs to be unified for all kinds of auras
Unit* target = aurApp->GetTarget();
if (IsPassive() && target->GetTypeId() == TYPEID_PLAYER)
if (IsPassive() && target->GetTypeId() == TYPEID_PLAYER && GetSpellInfo()->EquippedItemClass != -1)
{
if (!GetSpellInfo()->HasAttribute(SPELL_ATTR3_IGNORE_PROC_SUBCLASS_MASK))
{