Fixes Mercenary kill counter (#5010)

* Fixes #4329.
* The master or the Mercenary are able to increase the kill count.
Thanks to @Indigo000!
This commit is contained in:
Aleos
2020-05-28 13:22:31 -04:00
committed by GitHub
parent 023dcac49f
commit 4f68d0c144

View File

@@ -3009,7 +3009,8 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
if (achievement_db.mobexists(md->mob_id))
achievement_update_objective(sd, AG_BATTLE, 1, md->mob_id);
if (sd->md && src && src->type == BL_MER && mob_db(md->mob_id)->lv > sd->status.base_level / 2)
// The master or Mercenary can increase the kill count
if (sd->md && src && (src->type == BL_PC || src->type == BL_MER) && mob_db(md->mob_id)->lv > sd->status.base_level / 2)
mercenary_kills(sd->md);
}