From a3964db32898a6dbff1792fbb199e30bf506b019 Mon Sep 17 00:00:00 2001 From: Khiem Ton Date: Tue, 7 Mar 2023 08:16:51 +0700 Subject: [PATCH] fix: location distance --- ispoof/objects/object.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ispoof/objects/object.py b/ispoof/objects/object.py index 18a6f38..b17b829 100644 --- a/ispoof/objects/object.py +++ b/ispoof/objects/object.py @@ -3,7 +3,7 @@ class Object(): self.location = location def distance_to(self, other): - return self.location.distance(other.location) + return self.location.distance(other) def cooldown_to(self, other): - return self.location.get_cooldown(other.location) + 1 \ No newline at end of file + return self.location.get_cooldown(other) + 1 \ No newline at end of file