fix(Core/Pets): Correct Pet size for bigger pets (#14511)

* closes https://github.com/azerothcore/azerothcore-wotlk/issues/14488
This commit is contained in:
Kitzunu
2023-01-06 03:23:21 +01:00
committed by GitHub
parent 6b4ef50e7a
commit 8d2dda24ed

View File

@@ -2441,6 +2441,10 @@ float Pet::GetNativeObjectScale() const
else
scale = creatureFamily->minScale + float(GetLevel() - creatureFamily->minScaleLevel) / creatureFamily->maxScaleLevel * (creatureFamily->maxScale - creatureFamily->minScale);
if (CreatureDisplayInfoEntry const* displayInfo = sCreatureDisplayInfoStore.LookupEntry(GetNativeDisplayId()))
if (displayInfo->scale > 1.f)
scale *= displayInfo->scale;
return scale;
}