diff options
Diffstat (limited to 'src/scripts/Commands/cs_modify.cpp')
-rw-r--r-- | src/scripts/Commands/cs_modify.cpp | 11 |
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) { |