mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 00:48:56 +01:00
Core/GameObject: fixed interaction distance with questgiver and door gameobjects by using the scaling size of the gobject
This commit is contained in:
@@ -2479,6 +2479,9 @@ float GameObject::GetInteractionDistance() const
|
||||
case GAMEOBJECT_TYPE_FISHINGHOLE:
|
||||
case GAMEOBJECT_TYPE_FISHINGNODE:
|
||||
return 20.0f + CONTACT_DISTANCE; // max spell range
|
||||
case GAMEOBJECT_TYPE_DOOR:
|
||||
case GAMEOBJECT_TYPE_QUESTGIVER:
|
||||
return INTERACTION_DISTANCE + GetFloatValue(OBJECT_FIELD_SCALE_X);
|
||||
default:
|
||||
return INTERACTION_DISTANCE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user