Core/GameObject: fixed interaction distance with questgiver and door gameobjects by using the scaling size of the gobject
This commit is contained in:
1 parent
8f9e46c6f1
commit
95e10ea1b1
1 file changed
+3
@@ -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