mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +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();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "7920"
|
||||
#define REVISION_NR "7921"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue