summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-07-22 03:30:37 +0300
committerAndrei Karas <akaras@inbox.ru>2018-07-28 04:43:36 +0300
commit5ced38c58adb0236bf741ef0ec08a6cdc542d3b6 (patch)
tree6c56db4709dfc2969b36efcf70ca89ff4cfd0b74 /src/map/pc.c
parentb830a1528eb4a77cbd62fb9d8d4d855f9ae23261 (diff)
downloadhercules-5ced38c58adb0236bf741ef0ec08a6cdc542d3b6.tar.gz
hercules-5ced38c58adb0236bf741ef0ec08a6cdc542d3b6.tar.bz2
hercules-5ced38c58adb0236bf741ef0ec08a6cdc542d3b6.tar.xz
hercules-5ced38c58adb0236bf741ef0ec08a6cdc542d3b6.zip
Add packet ZC_GROUP_ISALIVE.
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index f3150bbdf..0aad00a56 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -8099,6 +8099,9 @@ static int pc_dead(struct map_session_data *sd, struct block_list *src)
}
pc_setdead(sd);
+
+ clif->party_dead_notification(sd);
+
//Reset menu skills/item skills
if (sd->skillitem)
sd->skillitem = sd->skillitemlv = 0;
@@ -10995,7 +10998,12 @@ static void pc_setstand(struct map_session_data *sd)
clif->sc_end(&sd->bl,sd->bl.id,SELF,SI_SIT);
//Reset sitting tick.
sd->ssregen.tick.hp = sd->ssregen.tick.sp = 0;
- sd->state.dead_sit = sd->vd.dead_sit = 0;
+ if (pc_isdead(sd)) {
+ sd->state.dead_sit = sd->vd.dead_sit = 0;
+ clif->party_dead_notification(sd);
+ } else {
+ sd->state.dead_sit = sd->vd.dead_sit = 0;
+ }
}
/**