diff options
author | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-04-07 15:14:35 +0000 |
---|---|---|
committer | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-04-07 15:14:35 +0000 |
commit | a6cd6538e4271ea08dc86803e8b7e8c8f235960b (patch) | |
tree | 883d4c1ae282fb67e1720f81c20f564499298ff4 /src/map/pet.c | |
parent | be2871f1e62bbb88c7fd413456d1b9c39d1f2fd9 (diff) | |
download | hercules-a6cd6538e4271ea08dc86803e8b7e8c8f235960b.tar.gz hercules-a6cd6538e4271ea08dc86803e8b7e8c8f235960b.tar.bz2 hercules-a6cd6538e4271ea08dc86803e8b7e8c8f235960b.tar.xz hercules-a6cd6538e4271ea08dc86803e8b7e8c8f235960b.zip |
* Readded @disablenpc
* Fixed @reloadscript not removing old NPC's and monsters first
* Some changes in mob and NPC unloading
* Changed the original @disablenpc to @hidenpc
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1429 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pet.c')
-rw-r--r-- | src/map/pet.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/pet.c b/src/map/pet.c index 351782e7f..6f4713d75 100644 --- a/src/map/pet.c +++ b/src/map/pet.c @@ -889,7 +889,8 @@ int pet_catch_process2(struct map_session_data *sd,int target_id) pet_catch_rate = (pet_catch_rate*battle_config.pet_catch_rate)/100; if(rand()%10000 < pet_catch_rate) { - mob_catch_delete(md,0); + mob_remove_map(md,0); + mob_setdelayspawn(md->bl.id); clif_pet_rulet(sd,1); // if(battle_config.etc_log) // printf("rulet success %d\n",target_id); |