summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/mob.c')
-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;
}