aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-07 17:49:42 -0600
committermegamage <none@none>2009-03-07 17:49:42 -0600
commitbbd030032e7428195d1dc6da36958562fa887a5f (patch)
treef1388513331c2f4442ce691a27d4fbccd5925817 /src
parent62f2db914c739f3a3ce177eddc7d529b71614aeb (diff)
*Fix a typo that makes pet set all un-autocastable spell autocast
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Pet.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/Pet.cpp b/src/game/Pet.cpp
index d722809f4c1..fd7f88cfbdc 100644
--- a/src/game/Pet.cpp
+++ b/src/game/Pet.cpp
@@ -249,7 +249,8 @@ bool Pet::LoadPetFromDB( Player* owner, uint32 petentry, uint32 petnumber, bool
// patch for old data where some spells have ACT_DECIDE but should have ACT_CAST
// so overwrite old state
SpellEntry const *spellInfo = sSpellStore.LookupEntry(m_charmInfo->GetActionBarEntry(index)->SpellOrAction);
- if (spellInfo && spellInfo->AttributesEx & SPELL_ATTR_EX_UNAUTOCASTABLE_BY_PET) m_charmInfo->GetActionBarEntry(index)->Type = ACT_ENABLED;
+ if (spellInfo && spellInfo->AttributesEx & SPELL_ATTR_EX_UNAUTOCASTABLE_BY_PET)
+ m_charmInfo->GetActionBarEntry(index)->Type = ACT_DISABLED;
}
//init teach spells
@@ -1272,7 +1273,7 @@ bool Pet::addSpell(uint32 spell_id, uint16 active, PetSpellState state, PetSpell
// same spells don't have autocast option
if (spellInfo->AttributesEx & SPELL_ATTR_EX_UNAUTOCASTABLE_BY_PET)
- active = ACT_ENABLED;
+ active = ACT_DISABLED;
PetSpellMap::iterator itr = m_spells.find(spell_id);
if (itr != m_spells.end())