mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 10:37:06 +00:00
[c12640] Fix sending player cooldowns after map change/login and Correct logic in SpellMgr::IsSpellProcEventCanTriggeredBy
This commit is contained in:
parent
622cd2edd2
commit
5bb01c478e
3 changed files with 3 additions and 3 deletions
|
|
@ -1773,7 +1773,7 @@ bool SpellMgr::IsSpellProcEventCanTriggeredBy(SpellProcEventEntry const* spellPr
|
|||
SpellClassOptionsEntry const* spellClassOptions = procSpell->GetSpellClassOptions();
|
||||
|
||||
// Check (if set) for spellFamilyName
|
||||
if (spellProcEvent->spellFamilyName && (!spellClassOptions || spellProcEvent->spellFamilyName != spellClassOptions->SpellFamilyName))
|
||||
if (spellProcEvent->spellFamilyName && (!spellClassOptions && spellProcEvent->spellFamilyName != SPELLFAMILY_GENERIC || spellProcEvent->spellFamilyName != spellClassOptions->SpellFamilyName))
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue