summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 1d5cd2d28..a0d8fe17e 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -4445,6 +4445,10 @@ int pc_dead(struct map_session_data *sd,struct block_list *src)
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_unattackable(&sd->pd->bl);
+ sd->pd->target_id = 0;
+ }
}
// Leave duel if you die [LuzZza]