Core/Objects: Object scale will now also affect bounding radius and combat reach fields
This commit is contained in:
1 parent
ef15fe8ed2
commit
9ec22fffa0
12 files changed
+58
-36
No files matched your search
@@ -2078,3 +2078,16 @@ Player* Pet::GetOwner() const
|
||||
{
|
||||
return Minion::GetOwner()->ToPlayer();
|
||||
}
|
||||
|
||||
void Pet::SetDisplayId(uint32 modelId)
|
||||
{
|
||||
Guardian::SetDisplayId(modelId);
|
||||
|
||||
if (!isControlled())
|
||||
return;
|
||||
|
||||
if (Unit* owner = GetOwner())
|
||||
if (Player* player = owner->ToPlayer())
|
||||
if (owner->ToPlayer()->GetGroup())
|
||||
owner->ToPlayer()->SetGroupUpdateFlag(GROUP_UPDATE_FLAG_PET_MODEL_ID);
|
||||
}
|
||||
Reference in new issue
Block a user