summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorpanikon <panikon@zoho.com>2014-04-09 19:34:29 -0300
committerpanikon <panikon@zoho.com>2014-04-09 19:34:29 -0300
commit4147d9f7966e7ebd94811248527cc45af1e54941 (patch)
treec1269d484db9af4318f84041f655fa6fcb9a0d16 /src/map/atcommand.c
parent47680829048288376aec23102b9660f36f4463ee (diff)
downloadhercules-4147d9f7966e7ebd94811248527cc45af1e54941.tar.gz
hercules-4147d9f7966e7ebd94811248527cc45af1e54941.tar.bz2
hercules-4147d9f7966e7ebd94811248527cc45af1e54941.tar.xz
hercules-4147d9f7966e7ebd94811248527cc45af1e54941.zip
Fixed issue: 7725
http://hercules.ws/board/tracker/issue-7725-disguise-hide-skill-bug/ Fixed issue: 8027 http://hercules.ws/board/tracker/issue-8027-when-the-storage-is-open-you-can-use-self-skills/ Fixed issue where @at showed it failed when it succeeded
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 09159c3f7..9e33f3c68 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -9954,6 +9954,11 @@ bool atcommand_exec(const int fd, struct map_session_data *sd, const char *messa
//Attempt to use the command
if ( (info->func(fd, (*atcmd_msg == atcommand->at_symbol) ? sd : ssd, command, params,info) != true) ) {
+#ifdef AUTOTRADE_PERSISTENCY
+ // Autotrade was successful if standalone is set
+ if( ((*atcmd_msg == atcommand->at_symbol) ? sd->state.standalone : ssd->state.standalone) )
+ return true;
+#endif
sprintf(output,msg_txt(154), command); // %s failed.
clif->message(fd, output);
return true;