Parcourir la source

Final alteration :P

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6844 54d463be-8e91-2dee-dedb-b68131a5f0ec
Lance il y a 19 ans
Parent
commit
42f64dbd26
1 fichiers modifiés avec 2 ajouts et 4 suppressions
  1. 2 4
      src/map/pc.c

+ 2 - 4
src/map/pc.c

@@ -4447,10 +4447,8 @@ int pc_dead(struct map_session_data *sd,struct block_list *src)
 				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;
-		}
+		if(sd->pd->target_id) // Unlock all targets...
+			pet_unlocktarget(&sd->pd);
 	}
 
 	// Leave duel if you die [LuzZza]