[Corrected]:
- pc.c again (Darn I'm making more mistakes) git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6843 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
94b0820fda
commit
aabab7f7c5
12
src/map/pc.c
12
src/map/pc.c
@ -4439,12 +4439,14 @@ int pc_dead(struct map_session_data *sd,struct block_list *src)
|
||||
if(sd->vender_id)
|
||||
vending_closevending(sd);
|
||||
|
||||
if(sd->status.pet_id > 0 && sd->pd && !map[sd->bl.m].flag.nopenalty)
|
||||
if(sd->status.pet_id > 0 && sd->pd)
|
||||
{
|
||||
sd->pet.intimate -= sd->pd->petDB->die;
|
||||
if(sd->pet.intimate < 0)
|
||||
sd->pet.intimate = 0;
|
||||
clif_send_petdata(sd,1,sd->pet.intimate);
|
||||
if(!map[sd->bl.m].flag.nopenalty){
|
||||
sd->pet.intimate -= sd->pd->petDB->die;
|
||||
if(sd->pet.intimate < 0)
|
||||
sd->pet.intimate = 0;
|
||||
clif_send_petdata(sd,1,sd->pet.intimate);
|
||||
}
|
||||
if(sd->pd->target_id){ // Unlock all targets...
|
||||
unit_stop_attack(&sd->pd->bl);
|
||||
sd->pd->target_id = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user