summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgumi <mekolat@users.noreply.github.com>2017-03-30 14:29:42 -0400
committergumi <mekolat@users.noreply.github.com>2017-03-30 14:29:42 -0400
commit1c5159c1802df8d3ee8d625f0561069f7e898671 (patch)
tree92b3bb268df1c2b810b7111ec1049e77acfde83d
parentba4519c3bdd23aec75ecf96e688d9e65e267d256 (diff)
downloadtmwa-1c5159c1802df8d3ee8d625f0561069f7e898671.tar.gz
tmwa-1c5159c1802df8d3ee8d625f0561069f7e898671.tar.bz2
tmwa-1c5159c1802df8d3ee8d625f0561069f7e898671.tar.xz
tmwa-1c5159c1802df8d3ee8d625f0561069f7e898671.zip
make `@goto` respect the gm power hierarchy
-rw-r--r--src/map/atcommand.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/atcommand.cpp b/src/map/atcommand.cpp
index f311c3e..3bbda58 100644
--- a/src/map/atcommand.cpp
+++ b/src/map/atcommand.cpp
@@ -671,7 +671,7 @@ ATCE atcommand_goto(Session *s, dumb_ptr<map_session_data> sd,
}
dumb_ptr<map_session_data> pl_sd = map_nick2sd(character);
- if (pl_sd != nullptr)
+ if (pl_sd != nullptr && pc_isGM(sd).detects(pc_isGM(pl_sd)))
{
if (pl_sd->bl_m->flag.get(MapFlag::NOWARPTO)
&& !(pc_isGM(sd).satisfies(battle_config.any_warp_GM_min_level)))