Do not call pet_set_intimate twice (#7702)

This commit is contained in:
Vincent Stumpf
2023-04-15 06:02:41 -07:00
committed by GitHub
parent 22aca36d35
commit a2f4f2bf8e
2 changed files with 2 additions and 6 deletions

View File

@@ -9680,8 +9680,6 @@ int pc_dead(map_session_data *sd,struct block_list *src)
struct pet_data *pd = sd->pd;
if( !mapdata->flag[MF_NOEXPPENALTY] ) {
pet_set_intimate(pd, pd->pet.intimate + pd->get_pet_db()->die);
if( pd->pet.intimate <= PET_INTIMATE_NONE )
pet_set_intimate(pd, PET_INTIMATE_NONE);
clif_send_petdata(sd,sd->pd,1,pd->pet.intimate);
}
if( sd->pd->target_id ) // Unlock all targets...