From c678263bb0945d3b6ce61a7401e15042c0b117eb Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Sun, 31 May 2009 04:26:40 +0400 Subject: [PATCH] [7921] Set pet and for creature owner in Spell::EffectSummon similar other summon effects. --- src/game/SpellEffects.cpp | 3 ++- src/shared/revision_nr.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index c96de3c79..4a60e7620 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -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(); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 6ee113c3d..98e81a10d 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "7920" + #define REVISION_NR "7921" #endif // __REVISION_NR_H__