mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[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:
parent
c54ae28ac2
commit
47ef4eca32
2 changed files with 5 additions and 2 deletions
|
|
@ -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))
|
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->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)
|
if(forceFaction)
|
||||||
summon->setFaction(forceFaction);
|
summon->setFaction(forceFaction);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11071"
|
#define REVISION_NR "11072"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue