summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authortoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-31 21:21:55 +0000
committertoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-31 21:21:55 +0000
commitfbafb947631a4d0b1c4afcc15afa011a9179ecea (patch)
treeb5eabe0a6d566a73c715c696b40b1fa008e635ea /src/map/atcommand.c
parent250a8f539f87eb04e2321b6a0a6cd5850f38ac65 (diff)
downloadhercules-fbafb947631a4d0b1c4afcc15afa011a9179ecea.tar.gz
hercules-fbafb947631a4d0b1c4afcc15afa011a9179ecea.tar.bz2
hercules-fbafb947631a4d0b1c4afcc15afa011a9179ecea.tar.xz
hercules-fbafb947631a4d0b1c4afcc15afa011a9179ecea.zip
Added possibility to restrict duel usage to same map
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8013 54d463be-8e91-2dee-dedb-b68131a5f0ec
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."