summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/map/clif.c9
-rw-r--r--src/map/mob.c4
2 files changed, 4 insertions, 9 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 9ba4f3959..12603bdf7 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -11706,19 +11706,12 @@ void clif_parse_HomMoveTo(int fd,struct map_session_data *sd) { //[orn]
}
void clif_parse_HomAttack(int fd,struct map_session_data *sd) { //[orn]
- struct block_list *target;
RFIFOHEAD(fd);
- nullpo_retv(sd);
if(!merc_is_hom_active(sd->hd))
return;
- if ((target = map_id2bl(RFIFOL(fd,6))) == NULL || status_isdead(target))
- return;
-
- merc_stop_walking(sd->hd, 1);
- merc_stop_attack(sd->hd);
- unit_attack(&sd->hd->bl,RFIFOL(fd,6),1) ;
+ unit_attack(&sd->hd->bl,RFIFOL(fd,6),0) ;
}
void clif_parse_HomMenu(int fd, struct map_session_data *sd) { //[orn]
diff --git a/src/map/mob.c b/src/map/mob.c
index 2d8c2591b..9078454e9 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2075,7 +2075,9 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
clif_mvp_exp(mvp_sd,mexp);
pc_gainexp(mvp_sd, &md->bl, mexp,0);
log_mvp[1] = mexp;
- if(!map[m].flag.nomvploot && !(type&1))
+ if(map[m].flag.nomvploot || type&1)
+ ; //No drops.
+ else
for(j=0;j<3;j++){
i = rand() % 3;