mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +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))
|
||||
{
|
||||
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue