diff options
-rw-r--r-- | src/map/pc.c | 5 |
1 files changed, 3 insertions, 2 deletions
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); |