Browse Source

- 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://svn.code.sf.net/p/rathena/svn/trunk@13685 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex 16 years ago
parent
commit
7a7728f3d2
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/map/mob.c

+ 3 - 0
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;
 	}