diff options
author | gumi <mekolat@users.noreply.github.com> | 2017-03-30 14:29:42 -0400 |
---|---|---|
committer | gumi <mekolat@users.noreply.github.com> | 2017-03-30 14:29:42 -0400 |
commit | 1c5159c1802df8d3ee8d625f0561069f7e898671 (patch) | |
tree | 92b3bb268df1c2b810b7111ec1049e77acfde83d /src | |
parent | ba4519c3bdd23aec75ecf96e688d9e65e267d256 (diff) | |
download | tmwa-1c5159c1802df8d3ee8d625f0561069f7e898671.tar.gz tmwa-1c5159c1802df8d3ee8d625f0561069f7e898671.tar.bz2 tmwa-1c5159c1802df8d3ee8d625f0561069f7e898671.tar.xz tmwa-1c5159c1802df8d3ee8d625f0561069f7e898671.zip |
make `@goto` respect the gm power hierarchy
Diffstat (limited to 'src')
-rw-r--r-- | src/map/atcommand.cpp | 2 |
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))) |