diff options
| author | ModoX <moardox@gmail.com> | 2024-04-10 20:03:14 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-10 20:03:14 +0200 |
| commit | 88bbd27f8d007dca17bb0d244fcf7e753506734e (patch) | |
| tree | f57a6b609cd6fee7deee7ed4adad2e24ab74659f /src/server/game/Entities/Object | |
| parent | 9b6a1b9be99accdfb85777a03e57b80e37b5861f (diff) | |
Core/Entities: Added possibility to inherit StringIds from other entities (#29908)
* also implicitly do so for personal summons
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 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; } } |
