Core/Entities: moved PetAura handling to Player where it belongs
This commit is contained in:
1 parent
f3246f835c
commit
acd63b4259
8 files changed
+33
-36
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user