mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-13 11:43:18 -04:00
Core/Entities: Added possibility to inherit StringIds from other entities (#29908)
* also implicitly do so for personal summons
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user