diff options
| author | ModoX <moardox@gmail.com> | 2024-04-10 20:03:14 +0200 |
|---|---|---|
| committer | Ovahlord <dreadkiller@gmx.de> | 2024-05-28 16:40:42 +0200 |
| commit | 32243eb1c19b6a8ccaafab0a154553a3e2cc21e4 (patch) | |
| tree | 97e935d9ae02a08dce49a185c7b473c1fe63da3b /src/server/game/Entities/Object | |
| parent | 98506fa3ff3e5c743e9f4c705cf9f59e3b4a5747 (diff) | |
Core/Entities: Added possibility to inherit StringIds from other entities (#29908)
* also implicitly do so for personal summons
(cherry picked from commit 88bbd27f8d007dca17bb0d244fcf7e753506734e)
Diffstat (limited to 'src/server/game/Entities/Object')
| -rw-r--r-- | src/server/game/Entities/Object/Object.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/game/Entities/Object/Object.cpp b/src/server/game/Entities/Object/Object.cpp index edd9206ff30..6746b49fd11 100644 --- a/src/server/game/Entities/Object/Object.cpp +++ b/src/server/game/Entities/Object/Object.cpp @@ -2094,6 +2094,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; } } |
