Skip to content

Commit

Permalink
fix(Core/Pets): Correct Pet size for bigger pets (azerothcore#14511)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kitzunu authored and EC2 Default User committed Feb 27, 2023
1 parent 13f8567 commit 0077219
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 0077219

Please sign in to comment.