Core/Misc: Removed unneeded checks
This commit is contained in:
1 parent
0aa1c50b41
commit
e72f6e31be
1 file changed
-15
@@ -56,9 +56,6 @@ public:
|
||||
|
||||
static bool HandleGodModeCheatCommand(ChatHandler* handler, const char* args)
|
||||
{
|
||||
if (!handler->GetSession() && !handler->GetSession()->GetPlayer())
|
||||
return false;
|
||||
|
||||
std::string argstr = (char*)args;
|
||||
|
||||
if (!*args)
|
||||
@@ -82,9 +79,6 @@ public:
|
||||
|
||||
static bool HandleCasttimeCheatCommand(ChatHandler* handler, const char* args)
|
||||
{
|
||||
if (!handler->GetSession() && !handler->GetSession()->GetPlayer())
|
||||
return false;
|
||||
|
||||
std::string argstr = (char*)args;
|
||||
|
||||
if (!*args)
|
||||
@@ -108,9 +102,6 @@ public:
|
||||
|
||||
static bool HandleCoolDownCheatCommand(ChatHandler* handler, const char* args)
|
||||
{
|
||||
if (!handler->GetSession() && !handler->GetSession()->GetPlayer())
|
||||
return false;
|
||||
|
||||
std::string argstr = (char*)args;
|
||||
|
||||
if (!*args)
|
||||
@@ -134,9 +125,6 @@ public:
|
||||
|
||||
static bool HandlePowerCheatCommand(ChatHandler* handler, const char* args)
|
||||
{
|
||||
if (!handler->GetSession() && !handler->GetSession()->GetPlayer())
|
||||
return false;
|
||||
|
||||
std::string argstr = (char*)args;
|
||||
|
||||
if (!*args)
|
||||
@@ -178,9 +166,6 @@ public:
|
||||
|
||||
static bool HandleWaterWalkCheatCommand(ChatHandler* handler, const char* args)
|
||||
{
|
||||
if (!handler->GetSession() && !handler->GetSession()->GetPlayer())
|
||||
return false;
|
||||
|
||||
std::string argstr = (char*)args;
|
||||
|
||||
Player* target = handler->GetSession()->GetPlayer();
|
||||
|
||||
Reference in new issue
Block a user