fix(Core/Pets): Correct Pet size for bigger pets (#14511)
* closes https://github.com/azerothcore/azerothcore-wotlk/issues/14488
This commit is contained in:
parent
6b4ef50e7a
commit
8d2dda24ed
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue