Skip to content

Commit

Permalink
[11072] Remove SetCreatorGuid for wild summoned creatures.
Browse files Browse the repository at this point in the history
If any exceptions exist where this field must be set, please inform in forums :)

Signed-off-by: NoFantasy <[email protected]>
  • Loading branch information
NoFantasy committed Jan 25, 2011
1 parent 95df79e commit d2a41c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/game/SpellEffects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11071"
#define REVISION_NR "11072"
#endif // __REVISION_NR_H__

0 comments on commit d2a41c8

Please sign in to comment.