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

Closes #28640
This commit is contained in:
Shauren
2022-12-31 19:29:52 +01:00
parent 704142f15a
commit fa361a40c8

View File

@@ -1925,7 +1925,7 @@ void Spell::EffectSummonType()
// randomize position for multiple summons
pos = caster->GetRandomPoint(*destTarget, radius);
summon = unitCaster->GetMap()->SummonCreature(entry, pos, properties, duration, unitCaster, m_spellInfo->Id, 0, privateObjectOwner);
summon = caster->GetMap()->SummonCreature(entry, pos, properties, duration, unitCaster, m_spellInfo->Id, 0, privateObjectOwner);
if (!summon)
continue;