Core/Entities: Added possibility to inherit StringIds from other entities (#29908)

* also implicitly do so for personal summons
This commit is contained in:
ModoX
2024-04-10 20:03:14 +02:00
committed by GitHub
parent 9b6a1b9be9
commit 88bbd27f8d
5 changed files with 23 additions and 0 deletions

View File

@@ -2060,6 +2060,9 @@ TempSummon* WorldObject::SummonPersonalClone(Position const& pos, TempSummonType
if (TempSummon* summon = map->SummonCreature(GetEntry(), pos, nullptr, despawnTime, privateObjectOwner, spellId, vehId, privateObjectOwner->GetGUID(), &smoothPhasingInfo))
{
summon->SetTempSummonType(despawnType);
if (Creature* thisCreature = ToCreature())
summon->InheritStringIds(thisCreature);
return summon;
}
}