mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[6956] Fixed pet spell learning broken in [6947].
This commit is contained in:
parent
b17b4c9fd8
commit
95a874ec49
2 changed files with 5 additions and 3 deletions
|
|
@ -1728,8 +1728,10 @@ void SpellMgr::LoadSpellLearnSpells()
|
||||||
if(!sSpellStore.LookupEntry(dbc_node.spell))
|
if(!sSpellStore.LookupEntry(dbc_node.spell))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// talent or passive spells or skill-step spells auto-casted, other required explicit dependent learning
|
// talent or passive spells or skill-step spells auto-casted and not need dependent learning,
|
||||||
dbc_node.autoLearned = GetTalentSpellCost(spell) > 0 || IsPassiveSpell(spell) || IsSpellHaveEffect(entry,SPELL_EFFECT_SKILL_STEP);
|
// pet teaching spells don't must be dependent learning (casted)
|
||||||
|
// other required explicit dependent learning
|
||||||
|
dbc_node.autoLearned = entry->EffectImplicitTargetA[i]==TARGET_PET || GetTalentSpellCost(spell) > 0 || IsPassiveSpell(spell) || IsSpellHaveEffect(entry,SPELL_EFFECT_SKILL_STEP);
|
||||||
|
|
||||||
SpellLearnSpellMap::const_iterator db_node_begin = GetBeginSpellLearnSpell(spell);
|
SpellLearnSpellMap::const_iterator db_node_begin = GetBeginSpellLearnSpell(spell);
|
||||||
SpellLearnSpellMap::const_iterator db_node_end = GetEndSpellLearnSpell(spell);
|
SpellLearnSpellMap::const_iterator db_node_end = GetEndSpellLearnSpell(spell);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "6955"
|
#define REVISION_NR "6956"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue