Do not call pet_set_intimate twice (#7702)
This commit is contained in:
@@ -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...
|
||||
|
||||
Reference in New Issue
Block a user