[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 <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2011-01-25 20:57:27 +01:00
parent c54ae28ac2
commit 47ef4eca32
2 changed files with 5 additions and 2 deletions

View file

@ -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);