From cb5d65f28e6d5ec089b0bb6ef974e6adeca6ce75 Mon Sep 17 00:00:00 2001 From: skotlex Date: Tue, 21 Apr 2009 15:46:56 +0000 Subject: - Now when the mob picks and attacks a player target, he is added to the "log" of attacked chars (counts for the total number of attackers bonus) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13685 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/mob.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/map/mob.c b/src/map/mob.c index 4c77b17af..a249d2724 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -1494,6 +1494,9 @@ static bool mob_ai_sub_hard(struct mob_data *md, unsigned int tick) if (battle_check_range (&md->bl, tbl, md->status.rhw.range)) { //Target within range, engage + + if(tbl->type == BL_PC) + mob_log_damage(md, tbl, 0); //Log interaction (counts as 'attacker' for the exp bonus) unit_attack(&md->bl,tbl->id,1); return true; } -- cgit v1.2.3-70-g09d2