summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorDastgir <dastgirp@gmail.com>2018-09-02 10:43:29 +0530
committerDastgir <dastgirp@gmail.com>2018-09-02 10:43:29 +0530
commitedebb021f19127b653e318e390f1e19ea3aa9180 (patch)
tree8f2bc539a1557d3575d10695684846acc34af4f6 /src/map
parent611bda248b3cb221bef4ad81f74c0508a76095d9 (diff)
downloadhercules-edebb021f19127b653e318e390f1e19ea3aa9180.tar.gz
hercules-edebb021f19127b653e318e390f1e19ea3aa9180.tar.bz2
hercules-edebb021f19127b653e318e390f1e19ea3aa9180.tar.xz
hercules-edebb021f19127b653e318e390f1e19ea3aa9180.zip
Fixed issue #2201
Killing clone will not trigger achievement
Diffstat (limited to 'src/map')
-rw-r--r--src/map/mob.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index d398d938c..765acafe7 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2426,7 +2426,8 @@ static int mob_dead(struct mob_data *md, struct block_list *src, int type)
if(zeny) // zeny from mobs [Valaris]
pc->getzeny(tmpsd[i], zeny, LOG_TYPE_PICKDROP_MONSTER, NULL);
- achievement->validate_mob_kill(tmpsd[i], md->db->mob_id); // Achievements [Smokexyz/Hercules]
+ if (!md->special_state.clone && !mob->is_clone(md->class_))
+ achievement->validate_mob_kill(tmpsd[i], md->db->mob_id); // Achievements [Smokexyz/Hercules]
}
}