Misc fixes

This commit is contained in:
hondacrx
2022-05-05 10:03:40 -04:00
parent fe56f40eac
commit 8abb8679db
4 changed files with 13 additions and 9 deletions
+8 -4
View File
@@ -4142,11 +4142,15 @@ namespace Game.Maps
{
if (summoner != null && smoothPhasingInfo.ReplaceObject.HasValue)
{
SmoothPhasingInfo originalSmoothPhasingInfo = smoothPhasingInfo;
originalSmoothPhasingInfo.ReplaceObject = summon.GetGUID();
summoner.GetOrCreateSmoothPhasing().SetViewerDependentInfo(privateObjectOwner, originalSmoothPhasingInfo);
WorldObject replacedObject = Global.ObjAccessor.GetWorldObject(summoner, smoothPhasingInfo.ReplaceObject.Value);
if (replacedObject != null)
{
SmoothPhasingInfo originalSmoothPhasingInfo = smoothPhasingInfo;
originalSmoothPhasingInfo.ReplaceObject = summon.GetGUID();
replacedObject.GetOrCreateSmoothPhasing().SetViewerDependentInfo(privateObjectOwner, originalSmoothPhasingInfo);
summon.SetDemonCreatorGUID(privateObjectOwner);
summon.SetDemonCreatorGUID(privateObjectOwner);
}
}
summon.GetOrCreateSmoothPhasing().SetSingleInfo(smoothPhasingInfo);