summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-04-21 15:46:56 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-04-21 15:46:56 +0000
commitcb5d65f28e6d5ec089b0bb6ef974e6adeca6ce75 (patch)
treed410291ce0b4a8a0f8f778408e67dc69be02e0be /src/map
parent785240ffcd857f93b652810280e9e560ec5cd1e4 (diff)
downloadhercules-cb5d65f28e6d5ec089b0bb6ef974e6adeca6ce75.tar.gz
hercules-cb5d65f28e6d5ec089b0bb6ef974e6adeca6ce75.tar.bz2
hercules-cb5d65f28e6d5ec089b0bb6ef974e6adeca6ce75.tar.xz
hercules-cb5d65f28e6d5ec089b0bb6ef974e6adeca6ce75.zip
- 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
Diffstat (limited to 'src/map')
-rw-r--r--src/map/mob.c3
1 files changed, 3 insertions, 0 deletions
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;
}