From b4d6607c18eb318a63ff4d153f81e77ddbe8cfbb Mon Sep 17 00:00:00 2001 From: hondacrx Date: Fri, 6 Jan 2023 17:32:11 -0500 Subject: [PATCH] Core/Spells: Fixed crashes with spells cast by gameobject that summon creatures Port From (https://github.com/TrinityCore/TrinityCore/commit/fa361a40c81c5b1623fe2ff8f9a206868a6604f0) --- Source/Game/Spells/SpellEffects.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/Spells/SpellEffects.cs b/Source/Game/Spells/SpellEffects.cs index 6aabb2dba..d9d293d59 100644 --- a/Source/Game/Spells/SpellEffects.cs +++ b/Source/Game/Spells/SpellEffects.cs @@ -1592,7 +1592,7 @@ namespace Game.Spells // randomize position for multiple summons pos = caster.GetRandomPoint(destTarget, radius); - summon = unitCaster.GetMap().SummonCreature(entry, pos, properties, (uint)duration, unitCaster, m_spellInfo.Id, 0, privateObjectOwner); + summon = caster.GetMap().SummonCreature(entry, pos, properties, (uint)duration, unitCaster, m_spellInfo.Id, 0, privateObjectOwner); if (summon == null) continue;