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
|
|
@ -2914,7 +2914,7 @@ void Player::SendInitialSpells()
|
||||||
|
|
||||||
data << uint32(itr->first);
|
data << uint32(itr->first);
|
||||||
|
|
||||||
data << uint16(itr->second.itemid); // cast item id
|
data << uint32(itr->second.itemid); // cast item id
|
||||||
data << uint16(sEntry->GetCategory()); // spell category
|
data << uint16(sEntry->GetCategory()); // spell category
|
||||||
|
|
||||||
// send infinity cooldown in special format
|
// send infinity cooldown in special format
|
||||||
|
|
|
||||||
|
|
@ -1773,7 +1773,7 @@ bool SpellMgr::IsSpellProcEventCanTriggeredBy(SpellProcEventEntry const* spellPr
|
||||||
SpellClassOptionsEntry const* spellClassOptions = procSpell->GetSpellClassOptions();
|
SpellClassOptionsEntry const* spellClassOptions = procSpell->GetSpellClassOptions();
|
||||||
|
|
||||||
// Check (if set) for spellFamilyName
|
// 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;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "12639"
|
#define REVISION_NR "12640"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue