*Spell_proc_event entries for Malestorm Weapon - by throneinc
*Fix bug that some spells can't proc *Add spell_proc_event entries for some items. --HG-- branch : trunk
This commit is contained in:
1 parent
e45c57f298
commit
6c7f2d2b24
6 files changed
+40
-15
No files matched your search
+9
-4
@@ -12012,14 +12012,14 @@ void Unit::ProcDamageAndSpellFor( bool isVictim, Unit * pTarget, uint32 procFlag
|
||||
if (!isTriggerAura[aurEff->GetAuraName()] && triggerData.spellProcEvent==NULL)
|
||||
continue;
|
||||
triggerData.effMask |= 1<<i;
|
||||
if (procExtra & (PROC_EX_INTERNAL_TRIGGERED | PROC_EX_INTERNAL_CANT_PROC))
|
||||
itr->second->SetCanProc(false);
|
||||
else
|
||||
itr->second->SetCanProc(true);
|
||||
}
|
||||
}
|
||||
if (triggerData.effMask)
|
||||
{
|
||||
procTriggered.push_front(triggerData);
|
||||
if (procExtra & (PROC_EX_INTERNAL_TRIGGERED | PROC_EX_INTERNAL_CANT_PROC))
|
||||
itr->second->SetCantProc(true);
|
||||
}
|
||||
}
|
||||
|
||||
// Nothing found
|
||||
@@ -12189,6 +12189,11 @@ void Unit::ProcDamageAndSpellFor( bool isVictim, Unit * pTarget, uint32 procFlag
|
||||
i->aura->DropAuraCharge();
|
||||
}
|
||||
}
|
||||
|
||||
// Cleanup proc requirements
|
||||
if (procExtra & (PROC_EX_INTERNAL_TRIGGERED | PROC_EX_INTERNAL_CANT_PROC))
|
||||
for(ProcTriggeredList::iterator i = procTriggered.begin(); i != procTriggered.end(); ++i)
|
||||
i->aura->SetCantProc(false);
|
||||
}
|
||||
|
||||
SpellSchoolMask Unit::GetMeleeDamageSchoolMask() const
|
||||
|
||||
Reference in new issue
Block a user