diff options
author | glighta <glighta@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-11-23 05:53:29 +0000 |
---|---|---|
committer | glighta <glighta@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-11-23 05:53:29 +0000 |
commit | 5c776e41bf6c13498e9575ee88aa2b2d47185f9e (patch) | |
tree | c5fd29d4eb4e6df15b393cd68c1e8b16350b5101 /src/map/atcommand.c | |
parent | 15762b30698842255bc545dee68705fad3447a4b (diff) | |
download | hercules-5c776e41bf6c13498e9575ee88aa2b2d47185f9e.tar.gz hercules-5c776e41bf6c13498e9575ee88aa2b2d47185f9e.tar.bz2 hercules-5c776e41bf6c13498e9575ee88aa2b2d47185f9e.tar.xz hercules-5c776e41bf6c13498e9575ee88aa2b2d47185f9e.zip |
-Apply mkdu95 fix for bugreport:5145 preventing clone if player dead, (for slave and evil clone)
-Fix old fread, fgets warnings, displaying a msg errors when failed now
-Cleaning checkweight debug showinfo
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16952 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index abdd8267e..ebdd7353b 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -7931,7 +7931,11 @@ ACMD_FUNC(clone) if (strcmpi(command+1, "clone") == 0) flag = 1; else if (strcmpi(command+1, "slaveclone") == 0) { - flag = 2; + flag = 2; + if(pc_isdead(sd)){ + clif_displaymessage(fd, msg_txt(129+flag*2)); + return 0; + } master = sd->bl.id; if (battle_config.atc_slave_clone_limit && mob_countslave(&sd->bl) >= battle_config.atc_slave_clone_limit) { |