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:
@@ -2442,7 +2442,7 @@ float Pet::GetNativeObjectScale() const
|
|||||||
scale = creatureFamily->minScale + float(GetLevel() - creatureFamily->minScaleLevel) / creatureFamily->maxScaleLevel * (creatureFamily->maxScale - creatureFamily->minScale);
|
scale = creatureFamily->minScale + float(GetLevel() - creatureFamily->minScaleLevel) / creatureFamily->maxScaleLevel * (creatureFamily->maxScale - creatureFamily->minScale);
|
||||||
|
|
||||||
if (CreatureDisplayInfoEntry const* displayInfo = sCreatureDisplayInfoStore.LookupEntry(GetNativeDisplayId()))
|
if (CreatureDisplayInfoEntry const* displayInfo = sCreatureDisplayInfoStore.LookupEntry(GetNativeDisplayId()))
|
||||||
if (displayInfo->scale > 1.f)
|
if (displayInfo->scale > 1.f && GetCreatureTemplate()->IsExotic())
|
||||||
scale *= displayInfo->scale;
|
scale *= displayInfo->scale;
|
||||||
|
|
||||||
return scale;
|
return scale;
|
||||||
|
|||||||
Reference in New Issue
Block a user