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
@@ -14512,16 +14512,6 @@ bool Unit::IsPolymorphed() const
|
||||
void Unit::SetDisplayId(uint32 modelId)
|
||||
{
|
||||
SetUInt32Value(UNIT_FIELD_DISPLAYID, modelId);
|
||||
|
||||
if (GetTypeId() == TYPEID_UNIT && ToCreature()->isPet())
|
||||
{
|
||||
Pet* pet = ToPet();
|
||||
if (!pet->isControlled())
|
||||
return;
|
||||
Unit* owner = GetOwner();
|
||||
if (owner && (owner->GetTypeId() == TYPEID_PLAYER) && owner->ToPlayer()->GetGroup())
|
||||
owner->ToPlayer()->SetGroupUpdateFlag(GROUP_UPDATE_FLAG_PET_MODEL_ID);
|
||||
}
|
||||
}
|
||||
|
||||
void Unit::RestoreDisplayId()
|
||||
|
||||
Reference in new issue
Block a user