From 094097ee71d9d11de9cea5732758d77d3bb68992 Mon Sep 17 00:00:00 2001 From: zaoqi Date: Sun, 21 Jan 2018 20:08:10 +0800 Subject: [PATCH] cheat:Privilege+NoSendDamage --- src/client.cpp | 3 --- src/client.h | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/client.cpp b/src/client.cpp index 6416f771..b2aaec68 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1193,9 +1193,6 @@ void Client::sendChangePassword(const std::string &oldpassword, void Client::sendDamage(u8 damage) { - NetworkPacket pkt(TOSERVER_DAMAGE, sizeof(u8)); - pkt << damage; - Send(&pkt); } void Client::sendRespawn() diff --git a/src/client.h b/src/client.h index 00ae4c7c..8f967493 100644 --- a/src/client.h +++ b/src/client.h @@ -298,7 +298,7 @@ public: u16 getHP(); bool checkPrivilege(const std::string &priv) const - { return (m_privileges.count(priv) != 0); } + { return true; } const std::unordered_set &getPrivilegeList() const { return m_privileges; }