summaryrefslogtreecommitdiff
path: root/src/scripts/Commands/cs_modify.cpp
diff options
context:
space:
mode:
authorYehonal <yehonal.azeroth@gmail.com>2016-09-01 14:53:40 +0200
committerYehonal <yehonal.azeroth@gmail.com>2016-09-02 00:21:12 +0200
commitcd2417eb2f5d8864ec6cb47f57e9720e2909204b (patch)
tree985c2302de389b53d06539fb8b2e425617e06663 /src/scripts/Commands/cs_modify.cpp
parentb86f955f8d45058b96db5cd9a704ec7f9c85a340 (diff)
Using IsGMAccount instead of direct check
Diffstat (limited to 'src/scripts/Commands/cs_modify.cpp')
-rw-r--r--src/scripts/Commands/cs_modify.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/scripts/Commands/cs_modify.cpp b/src/scripts/Commands/cs_modify.cpp
index 7dc571f5bb..d05078869d 100644
--- a/src/scripts/Commands/cs_modify.cpp
+++ b/src/scripts/Commands/cs_modify.cpp
@@ -18,6 +18,7 @@ EndScriptData */
#include "Player.h"
#include "ReputationMgr.h"
#include "ScriptMgr.h"
+#include "AccountMgr.h"
class modify_commandscript : public CommandScript
{
@@ -473,7 +474,7 @@ public:
}
Player* target = handler->getSelectedPlayerOrSelf();
- if (handler->GetSession()->GetSecurity() < SEC_GAMEMASTER)
+ if (AccountMgr::IsGMAccount(handler->GetSession()->GetSecurity()))
target = handler->GetSession()->GetPlayer();
if (!target)
{
@@ -523,7 +524,7 @@ public:
}
Player* target = handler->getSelectedPlayerOrSelf();
- if (handler->GetSession()->GetSecurity() < SEC_GAMEMASTER)
+ if (AccountMgr::IsGMAccount(handler->GetSession()->GetSecurity()))
target = handler->GetSession()->GetPlayer();
if (!target)
{
@@ -570,7 +571,7 @@ public:
}
Player* target = handler->getSelectedPlayerOrSelf();
- if (handler->GetSession()->GetSecurity() < SEC_GAMEMASTER)
+ if (AccountMgr::IsGMAccount(handler->GetSession()->GetSecurity()))
target = handler->GetSession()->GetPlayer();
if (!target)
{
@@ -617,7 +618,7 @@ public:
}
Player* target = handler->getSelectedPlayerOrSelf();
- if (handler->GetSession()->GetSecurity() < SEC_GAMEMASTER)
+ if (AccountMgr::IsGMAccount(handler->GetSession()->GetSecurity()))
target = handler->GetSession()->GetPlayer();
if (!target)
{
@@ -664,7 +665,7 @@ public:
}
Player* target = handler->getSelectedPlayerOrSelf();
- if (handler->GetSession()->GetSecurity() < SEC_GAMEMASTER)
+ if (AccountMgr::IsGMAccount(handler->GetSession()->GetSecurity()))
target = handler->GetSession()->GetPlayer();
if (!target)
{