diff options
Diffstat (limited to 'src/game/Pet.cpp')
-rw-r--r-- | src/game/Pet.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Pet.cpp b/src/game/Pet.cpp index cafebf45f3f..72951420573 100644 --- a/src/game/Pet.cpp +++ b/src/game/Pet.cpp @@ -288,7 +288,7 @@ bool Pet::LoadPetFromDB( Unit* owner, uint32 petentry, uint32 petnumber, bool cu m_charmInfo->GetActionBarEntry(index)->SpellOrAction = atol((*iter).c_str()); // patch for old data where some spells have ACT_DECIDE but should have ACT_CAST - // so overwrite old state + // 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_CAST; } @@ -1717,7 +1717,7 @@ void Pet::ToggleAutocast(uint32 spellid, bool apply) //if(const SpellEntry *tempSpell = GetSpellStore()->LookupEntry(spellid)) // if(tempSpell->EffectImplicitTargetA[0] != TARGET_ALL_AROUND_CASTER // && tempSpell->EffectImplicitTargetA[0] != TARGET_CHAIN_DAMAGE) - // return; + // return; PetSpellMap::const_iterator itr = m_spells.find((uint16)spellid); |