Core/Objects: Object scale will now also affect bounding radius and combat reach fields

This commit is contained in:
Shauren committed 2013-06-11 17:28:16 +02:00
1 parent ef15fe8ed2
commit 9ec22fffa0
12 files changed
+58 -36

No files matched your search

+13
View File
@@ -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);
}