From 47ef4eca32b8c167e3a34060e6562029a620d946 Mon Sep 17 00:00:00 2001 From: NoFantasy Date: Tue, 25 Jan 2011 20:57:27 +0100 Subject: [PATCH] [11072] Remove SetCreatorGuid for wild summoned creatures. If any exceptions exist where this field must be set, please inform in forums :) Signed-off-by: NoFantasy --- src/game/SpellEffects.cpp | 5 ++++- src/shared/revision_nr.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index cddbc6df3..fcf8ff5d6 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -4734,7 +4734,10 @@ void Spell::DoSummonWild(SpellEffectIndex eff_idx, uint32 forceFaction) if(Creature *summon = m_caster->SummonCreature(creature_entry, px, py, pz, m_caster->GetOrientation(), summonType, duration)) { summon->SetUInt32Value(UNIT_CREATED_BY_SPELL, m_spellInfo->Id); - summon->SetCreatorGuid(m_caster->GetObjectGuid()); + + // UNIT_FIELD_CREATEDBY are not set for these kind of spells. + // Does exceptions exist? If so, what are they? + // summon->SetCreatorGuid(m_caster->GetObjectGuid()); if(forceFaction) summon->setFaction(forceFaction); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 726006605..0e5a230e9 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 "11071" + #define REVISION_NR "11072" #endif // __REVISION_NR_H__