summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authortoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-27 11:56:22 +0000
committertoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-27 11:56:22 +0000
commitd6477ea054fa860fd44a008172f6da2e5e6a308f (patch)
tree1b82405176e3ba0677918cd554177e45bec87daf /src/map/mob.c
parent5c5b78dc8c26ae02a1b8245a8398c8cffdb314f3 (diff)
downloadhercules-d6477ea054fa860fd44a008172f6da2e5e6a308f.tar.gz
hercules-d6477ea054fa860fd44a008172f6da2e5e6a308f.tar.bz2
hercules-d6477ea054fa860fd44a008172f6da2e5e6a308f.tar.xz
hercules-d6477ea054fa860fd44a008172f6da2e5e6a308f.zip
* Fix homunc & code cleanup [Toms]
- Timer problems on delete_timer - Intimacy problem (overflow & new values) - Homunc deleted if intimacy < 0 - base exp is now given to master - Homunc sometimes not saved git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7913 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 039a53fb1..961e79c49 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -1893,8 +1893,11 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
pc_getzeny((struct map_session_data *)tmpbl[i], zeny);
break ;
case BL_HOMUNCULUS:
- if(base_exp)
+ if(base_exp) {
merc_hom_gainexp((struct homun_data *)tmpbl[i], base_exp);
+ //homunculus give base_exp to master
+ pc_gainexp(((struct homun_data *)tmpbl[i])->master, &md->bl, base_exp,0);
+ }
if(zeny) //homunculus give zeny to master
pc_getzeny((struct map_session_data *)((struct homun_data *)tmpbl[i])->master, zeny);
break ;