fix(Core/Creature): Check model increase only for Exotic creatures (#14526)

* closes https://github.com/azerothcore/azerothcore-wotlk/issues/14525
This commit is contained in:
Kitzunu
2023-01-07 20:36:39 +01:00
committed by GitHub
parent 8d4dd95014
commit ed2997ab10

View File

@@ -2442,7 +2442,7 @@ float Pet::GetNativeObjectScale() const
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)
if (displayInfo->scale > 1.f && GetCreatureTemplate()->IsExotic())
scale *= displayInfo->scale;
return scale;