Skip to content

Commit

Permalink
fix(Core/Pets): Correct Pet size for bigger pets (#14511)
Browse files Browse the repository at this point in the history
* closes #14488
  • Loading branch information
Kitzunu committed Jan 6, 2023
1 parent 6b4ef50 commit 8d2dda2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/server/game/Entities/Pet/Pet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 8d2dda2

Please sign in to comment.