From 36ac72a8178bab7f1802d67d13c4d91ebec3e88b Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 7 Nov 2022 00:14:41 -0300 Subject: [TMW2] Do not cancel running timers when you die. --- src/map/pc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/map/pc.c b/src/map/pc.c index e1da6f69d..952d89a21 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -8021,8 +8021,9 @@ static int pc_dead(struct map_session_data *sd, struct block_list *src) duel->reject(sd->duel_invite, sd); } - if (sd->npc_id && sd->st && sd->st->state != RUN) - npc->event_dequeue(sd); + // [TMW2] Do not dequeue events if you die (that's what ispcdead is for) + //if (sd->npc_id && sd->st && sd->st->state != RUN) + // npc->event_dequeue(sd); pc_setglobalreg(sd,script->add_variable("PC_DIE_COUNTER"),sd->die_counter+1); pc->setparam(sd, SP_KILLERRID, src?src->id:0); -- cgit v1.2.3-70-g09d2