mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Spells: Fixed crashes with spells cast by gameobject that summon creatures
Closes #28640
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user