aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-27 15:17:15 -0600
committermegamage <none@none>2008-12-27 15:17:15 -0600
commitac9cced914fb4c9db0b2b64f7fd9f9ab8c7802ee (patch)
tree5a42bfb233a1592353130d9dd0119473c3db3ad9
parentae5e329321d0b6eec74672e47251c1845f578fb0 (diff)
*Update to Mangos 6957.
--HG-- branch : trunk
-rw-r--r--src/game/Player.cpp2
-rw-r--r--src/game/SpellMgr.cpp6
-rw-r--r--src/shared/revision_nr.h2
3 files changed, 6 insertions, 4 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 73d6ed1b899..8fbc26ed9eb 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -17016,7 +17016,7 @@ void Player::RemovePetitionsAndSigns(uint64 guid, uint32 type)
CharacterDatabase.CommitTransaction();
}
-void LeaveAllArenaTeams(uint64 guid)
+void Player::LeaveAllArenaTeams(uint64 guid)
{
QueryResult *result = CharacterDatabase.PQuery("SELECT arena_team_member.arenateamid FROM arena_team_member JOIN arena_team ON arena_team_member.arenateamid = arena_team.arenateamid WHERE guid='%u'", GUID_LOPART(guid));
if(!result)
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp
index 3a0f776352a..12689654310 100644
--- a/src/game/SpellMgr.cpp
+++ b/src/game/SpellMgr.cpp
@@ -1794,8 +1794,10 @@ void SpellMgr::LoadSpellLearnSpells()
if(!sSpellStore.LookupEntry(dbc_node.spell))
continue;
- // talent or passive spells or skill-step spells auto-casted, other required explicit dependent learning
- dbc_node.autoLearned = GetTalentSpellCost(spell) > 0 || IsPassiveSpell(spell) || IsSpellHaveEffect(entry,SPELL_EFFECT_SKILL_STEP);
+ // talent or passive spells or skill-step spells auto-casted and not need dependent learning,
+ // 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_end = GetEndSpellLearnSpell(spell);
diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h
index f90b03cc3a6..08976dc2423 100644
--- a/src/shared/revision_nr.h
+++ b/src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
- #define REVISION_NR "6955"
+ #define REVISION_NR "6957"
#endif // __REVISION_NR_H__