diff options
| author | Keader <keader.android@gmail.com> | 2018-04-03 08:28:41 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-03 08:28:41 -0300 |
| commit | 309738dc3e08f572fad661e96f149a017011758c (patch) | |
| tree | 992ab9909b4ebd5ef3b96a07a0093453d9be03b6 /src/server/game/Spells/SpellEffects.cpp | |
| parent | 6dd23da9e16230ba79994185843f7e75affdc248 (diff) | |
Core/Spells: Fix UNIT_CREATED_BY_SPELL in SPELL_EFFECT_SUMMON (#21756)
Diffstat (limited to 'src/server/game/Spells/SpellEffects.cpp')
| -rw-r--r-- | src/server/game/Spells/SpellEffects.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp index 269dc5527c9..24e33258d58 100644 --- a/src/server/game/Spells/SpellEffects.cpp +++ b/src/server/game/Spells/SpellEffects.cpp @@ -2302,7 +2302,7 @@ void Spell::EffectSummonType(SpellEffIndex effIndex) // randomize position for multiple summons pos = caster->GetRandomPoint(*destTarget, radius); - summon = caster->SummonCreature(entry, pos, summonType, duration); + summon = caster->SummonCreature(entry, pos, summonType, duration, 0, m_spellInfo->Id); if (!summon) continue; @@ -2310,7 +2310,6 @@ void Spell::EffectSummonType(SpellEffIndex effIndex) { summon->SetOwnerGUID(caster->GetGUID()); summon->SetFaction(caster->GetFaction()); - summon->SetUInt32Value(UNIT_CREATED_BY_SPELL, m_spellInfo->Id); } ExecuteLogEffectSummonObject(effIndex, summon); |
