summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-11-02 14:21:54 -0300
committerJesusaves <cpntb1@ymail.com>2021-11-02 14:21:54 -0300
commit1b30990422b41dcee690b142b6970ddc867631b1 (patch)
tree37fd5c5b284c96d012d5ea232e6f2d1f98eccc29
parentf5d738c72e5c9d889e31240a4fed206278a84a74 (diff)
downloadhercules-1b30990422b41dcee690b142b6970ddc867631b1.tar.gz
hercules-1b30990422b41dcee690b142b6970ddc867631b1.tar.bz2
hercules-1b30990422b41dcee690b142b6970ddc867631b1.tar.xz
hercules-1b30990422b41dcee690b142b6970ddc867631b1.zip
`killedrid` should always be set.
-rw-r--r--src/map/mob.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 4e0c009ab..43fb6202c 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2799,6 +2799,7 @@ static int mob_dead(struct mob_data *md, struct block_list *src, int type)
pc->setparam(sd, SP_KILLERRID, sd->bl.id);
npc->event(sd,md->npc_event,0);
} else if( mvp_sd ) {
+ pc->setparam(mvp_sd, SP_KILLEDRID, md->class_);
pc->setparam(mvp_sd, SP_KILLERRID, sd?sd->bl.id:0);
npc->event(mvp_sd,md->npc_event,0);
} else