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 86d8c7a62..c59c2b851 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -5870,6 +5870,12 @@ int atcommand_autotrade(const int fd, struct map_session_data* sd, const char* c
nullpo_retr(-1, sd);
if( sd->vender_id ) //check if player's vending
{
+ if( pc_isdead(sd) )
+ {
+ clif_displaymessage(fd, "Cannot Autotrade if you are dead.");
+ return -1;
+ }
+
if( map[sd->bl.m].flag.autotrade == battle_config.autotrade_mapflag )
{
sd->state.autotrade = 1;