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/mob.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/mob.c')
-rw-r--r-- | src/map/mob.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index b5db08038..6ea3afed8 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -3343,6 +3343,9 @@ int mob_clone_spawn(struct map_session_data *sd, int m, int x, int y, const char nullpo_ret(sd); + if(pc_isdead(sd) && master_id && flag&1) + return 0; + ARR_FIND( MOB_CLONE_START, MOB_CLONE_END, class_, mob_db_data[class_] == NULL ); if(class_ >= MOB_CLONE_END) return 0; |