mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[7921] Set pet and for creature owner in Spell::EffectSummon similar other summon effects.
This commit is contained in:
parent
91157c7eb9
commit
c678263bb0
2 changed files with 3 additions and 2 deletions
|
|
@ -3293,9 +3293,10 @@ void Spell::EffectSummon(uint32 i)
|
|||
|
||||
map->Add((Creature*)spawnCreature);
|
||||
|
||||
m_caster->SetPet(spawnCreature);
|
||||
|
||||
if(m_caster->GetTypeId() == TYPEID_PLAYER)
|
||||
{
|
||||
m_caster->SetPet(spawnCreature);
|
||||
spawnCreature->GetCharmInfo()->SetReactState( REACT_DEFENSIVE );
|
||||
spawnCreature->SavePetToDB(PET_SAVE_AS_CURRENT);
|
||||
((Player*)m_caster)->PetSpellInitialize();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue