mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
fix(Core/Pets): Correct Pet size for bigger pets (#14511)
* closes https://github.com/azerothcore/azerothcore-wotlk/issues/14488
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user