Skip to content

Commit 2d32444

Browse files
authored
Calculate correct base values of CombatReach and BoundingRadius (#744)
1 parent 7d2558c commit 2d32444

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

WowPacketParser/SQL/Builders/UnitMisc.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,9 @@ public static string ModelData(Dictionary<WowGuid, Unit> units)
205205
continue;
206206

207207
var scale = npc.ObjectData.Scale;
208-
model.BoundingRadius = npc.UnitData.BoundingRadius / scale;
209-
model.CombatReach = npc.UnitData.CombatReach / scale;
208+
var displayScale = npc.UnitData.DisplayScale;
209+
model.BoundingRadius = (npc.UnitData.BoundingRadius / scale) / displayScale;
210+
model.CombatReach = (npc.UnitData.CombatReach / scale) / displayScale;
210211
model.Gender = (Gender)npc.UnitData.Sex;
211212

212213
models.Add(model);

0 commit comments

Comments
 (0)