Core/Spells: Fixed crashes with spells cast by gameobject that summon creatures

Port From (https://github.com/TrinityCore/TrinityCore/commit/fa361a40c81c5b1623fe2ff8f9a206868a6604f0)
This commit is contained in:
hondacrx
2023-01-06 17:32:11 -05:00
parent 54a507e284
commit b4d6607c18
+1 -1
View File
@@ -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;