diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/map/pc.c | 4 | ||||
-rw-r--r-- | src/map/pet.c | 4 | ||||
-rw-r--r-- | src/map/script.c | 1 |
3 files changed, 3 insertions, 6 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index ca8e35073..ad669c0c8 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -8148,10 +8148,8 @@ static int pc_dead(struct map_session_data *sd, struct block_list *src) if (sd->status.pet_id > 0 && sd->pd != NULL) { struct pet_data *pd = sd->pd; - if (map->list[sd->bl.m].flag.noexppenalty == 0) { + if (map->list[sd->bl.m].flag.noexppenalty == 0) pet->set_intimate(pd, pd->pet.intimate - pd->petDB->die); - clif->send_petdata(sd, sd->pd, 1, pd->pet.intimate); - } if (sd->pd != NULL && sd->pd->target_id != 0) // Unlock all targets. pet->unlocktarget(sd->pd); diff --git a/src/map/pet.c b/src/map/pet.c index c6656047c..5b2a95446 100644 --- a/src/map/pet.c +++ b/src/map/pet.c @@ -158,6 +158,8 @@ static void pet_set_intimate(struct pet_data *pd, int value) pet_stop_attack(pd); unit->remove_map(&pd->bl, CLR_OUTSIGHT, ALC_MARK); } + } else { + clif->send_petdata(sd, pd, 1, pd->pet.intimate); } status_calc_pc(sd, SCO_NONE); @@ -350,7 +352,6 @@ static int pet_hungry(int tid, int64 tick, int id, intptr_t data) return 0; status_calc_pet(pd, SCO_NONE); - clif->send_petdata(sd, pd, 1, pd->pet.intimate); if (pd->petDB->starving_delay > 0) interval = pd->petDB->starving_delay; @@ -989,7 +990,6 @@ static int pet_food(struct map_session_data *sd, struct pet_data *pd) status_calc_pet(pd, SCO_NONE); pet->set_hunger(pd, pd->pet.hungry + pd->petDB->fullness); clif->send_petdata(sd, pd, 2, pd->pet.hungry); - clif->send_petdata(sd, pd, 1, pd->pet.intimate); clif->pet_food(sd, pd->petDB->FoodID, 1); return 0; diff --git a/src/map/script.c b/src/map/script.c index 743a1779a..d501818d9 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -20629,7 +20629,6 @@ static BUILDIN(setunitdata) break; case UDT_INTIMACY: pet->set_intimate(pd, val); - clif->send_petdata(pd->msd, pd, 1, pd->pet.intimate); break; case UDT_HUNGER: pet->set_hunger(pd, val); |