mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Misc: Removed unneeded checks
(cherry picked from commit 513e153a13)
This commit is contained in:
@@ -58,9 +58,6 @@ public:
|
||||
|
||||
static bool HandleGodModeCheatCommand(ChatHandler* handler, char const* args)
|
||||
{
|
||||
if (!handler->GetSession() && !handler->GetSession()->GetPlayer())
|
||||
return false;
|
||||
|
||||
std::string argstr = (char*)args;
|
||||
|
||||
if (!*args)
|
||||
@@ -84,9 +81,6 @@ public:
|
||||
|
||||
static bool HandleCasttimeCheatCommand(ChatHandler* handler, char const* args)
|
||||
{
|
||||
if (!handler->GetSession() && !handler->GetSession()->GetPlayer())
|
||||
return false;
|
||||
|
||||
std::string argstr = (char*)args;
|
||||
|
||||
if (!*args)
|
||||
@@ -110,9 +104,6 @@ public:
|
||||
|
||||
static bool HandleCoolDownCheatCommand(ChatHandler* handler, char const* args)
|
||||
{
|
||||
if (!handler->GetSession() && !handler->GetSession()->GetPlayer())
|
||||
return false;
|
||||
|
||||
std::string argstr = (char*)args;
|
||||
|
||||
if (!*args)
|
||||
@@ -136,9 +127,6 @@ public:
|
||||
|
||||
static bool HandlePowerCheatCommand(ChatHandler* handler, char const* args)
|
||||
{
|
||||
if (!handler->GetSession() && !handler->GetSession()->GetPlayer())
|
||||
return false;
|
||||
|
||||
std::string argstr = (char*)args;
|
||||
|
||||
if (!*args)
|
||||
@@ -183,9 +171,6 @@ public:
|
||||
|
||||
static bool HandleWaterWalkCheatCommand(ChatHandler* handler, char const* 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