Core/Entities: moved PetAura handling to Player where it belongs

This commit is contained in:
Aokromes committed 2017-05-02 02:10:32 +02:00
1 parent f3246f835c
commit acd63b4259
8 files changed
+33 -36

No files matched your search

+6 -3
View File
@@ -584,10 +584,13 @@ void Spell::EffectDummy(SpellEffIndex effIndex)
}
// pet auras
if (PetAura const* petSpell = sSpellMgr->GetPetAura(m_spellInfo->Id, effIndex))
if (m_caster->GetTypeId() == TYPEID_PLAYER)
{
m_caster->AddPetAura(petSpell);
return;
if (PetAura const* petSpell = sSpellMgr->GetPetAura(m_spellInfo->Id, effIndex))
{
m_caster->ToPlayer()->AddPetAura(petSpell);
return;
}
}
// normal DB scripted effect