mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
Core/Misc: Removed unneeded checks
This commit is contained in:
@@ -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