*Fix a typo in latest rev
--HG-- branch : trunk
This commit is contained in:
@@ -1176,13 +1176,6 @@ void SpellMgr::LoadSpellBonusess()
|
|||||||
|
|
||||||
bool SpellMgr::IsSpellProcEventCanTriggeredBy(SpellProcEventEntry const* spellProcEvent, uint32 EventProcFlag, SpellEntry const * procSpell, uint32 procFlags, uint32 procExtra, bool active)
|
bool SpellMgr::IsSpellProcEventCanTriggeredBy(SpellProcEventEntry const* spellProcEvent, uint32 EventProcFlag, SpellEntry const * procSpell, uint32 procFlags, uint32 procExtra, bool active)
|
||||||
{
|
{
|
||||||
// Additional checks for triggered spells
|
|
||||||
if (procExtra & PROC_EX_INTERNAL_TRIGGERED)
|
|
||||||
{
|
|
||||||
if (!(procSpell->AttributesEx3 & SPELL_ATTR_EX3_CAN_PROC_TRIGGERED))
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// No extra req need
|
// No extra req need
|
||||||
uint32 procEvent_procEx = PROC_EX_NONE;
|
uint32 procEvent_procEx = PROC_EX_NONE;
|
||||||
|
|
||||||
|
|||||||
@@ -12350,6 +12350,13 @@ bool Unit::IsTriggeredAtSpellProcEvent(Unit *pVictim, Aura * aura, SpellEntry co
|
|||||||
if (!EventProcFlag)
|
if (!EventProcFlag)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
// Additional checks for triggered spells
|
||||||
|
if (procExtra & PROC_EX_INTERNAL_TRIGGERED)
|
||||||
|
{
|
||||||
|
if (!(spellProto->AttributesEx3 & SPELL_ATTR_EX3_CAN_PROC_TRIGGERED))
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// Check spellProcEvent data requirements
|
// Check spellProcEvent data requirements
|
||||||
if(!spellmgr.IsSpellProcEventCanTriggeredBy(spellProcEvent, EventProcFlag, procSpell, procFlag, procExtra, active))
|
if(!spellmgr.IsSpellProcEventCanTriggeredBy(spellProcEvent, EventProcFlag, procSpell, procFlag, procExtra, active))
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user