From 88bbd27f8d007dca17bb0d244fcf7e753506734e Mon Sep 17 00:00:00 2001 From: ModoX Date: Wed, 10 Apr 2024 20:03:14 +0200 Subject: Core/Entities: Added possibility to inherit StringIds from other entities (#29908) * also implicitly do so for personal summons --- src/server/game/Entities/Object/Object.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/server/game/Entities/Object') diff --git a/src/server/game/Entities/Object/Object.cpp b/src/server/game/Entities/Object/Object.cpp index 5801aaa6a22..0a1f2b403ad 100644 --- a/src/server/game/Entities/Object/Object.cpp +++ b/src/server/game/Entities/Object/Object.cpp @@ -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; } } -- cgit v1.2.3