Core/Creatures: Compute CombatReach and BoundingRadius using DisplayScale

Port From (https://github.com/TrinityCore/TrinityCore/commit/81ea6f54d93ee10b03e6432c6071e0d0983796a2)
This commit is contained in:
hondacrx
2023-04-21 18:21:08 -04:00
parent d3297b96a2
commit 19c484dc5a
10 changed files with 50 additions and 58 deletions
+3 -4
View File
@@ -203,8 +203,7 @@ namespace Game.Entities
GetCharmInfo().SetPetNumber(petInfo.PetNumber, IsPermanentPetFor(owner));
SetDisplayId(petInfo.DisplayId);
SetNativeDisplayId(petInfo.DisplayId);
SetDisplayId(petInfo.DisplayId, true);
uint petlevel = petInfo.Level;
ReplaceAllNpcFlags(NPCFlags.None);
ReplaceAllNpcFlags2(NPCFlags2.None);
@@ -1492,9 +1491,9 @@ namespace Game.Entities
return base.GetNativeObjectScale();
}
public override void SetDisplayId(uint modelId, float displayScale = 1f)
public override void SetDisplayId(uint modelId, bool setNative = false)
{
base.SetDisplayId(modelId, displayScale);
base.SetDisplayId(modelId, setNative);
if (!IsControlled())
return;