summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/serverfeatures.cpp5
-rw-r--r--src/net/tmwa/serverfeatures.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp
index 28f0a3cee..86f679ae9 100644
--- a/src/net/tmwa/serverfeatures.cpp
+++ b/src/net/tmwa/serverfeatures.cpp
@@ -64,4 +64,9 @@ bool ServerFeatures::havePlayerStatusUpdate() const
return serverVersion >= 4;
}
+bool ServerFeatures::haveBrokenPlayerAttackDistance() const
+{
+ return serverVersion < 1;
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h
index 87a1b61b0..8bf7288b3 100644
--- a/src/net/tmwa/serverfeatures.h
+++ b/src/net/tmwa/serverfeatures.h
@@ -45,6 +45,8 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveLangTab() const override final;
bool havePlayerStatusUpdate() const override final;
+
+ bool haveBrokenPlayerAttackDistance() const override final;
};
} // namespace TmwAthena