summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index e0c4b5405..ccdbab7bf 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -10181,6 +10181,12 @@ int atcommand_invite(
clif_displaymessage(fd, msg_txt(353));
return 0;
}
+
+ if(battle_config.duel_only_on_same_map && target_sd->bl.m != sd->bl.m)
+ {
+ clif_displaymessage(fd, msg_txt(364));
+ return 0;
+ }
duel_invite(did, sd, target_sd);
// "Duel: Invitation has been sent."