From fe84618e4c80ee808cf7beed0e2a5d3e57bc8975 Mon Sep 17 00:00:00 2001 From: Inkfish Date: Sun, 13 Sep 2009 08:31:19 +0000 Subject: * Progressbar aborts when player is attacked. * Do not stand if damage is from yourself or has no source.(bugreport:3582) * Any mobs killed by party members within view range are taken into account in questlog. * 'unit_walktobl' now uses at least 1 as the range since 'unit_can_reach_bl' always sets the target coordinates 1 cell away from the target block. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14057 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/pet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/pet.c') diff --git a/src/map/pet.c b/src/map/pet.c index f933836a1..816a98c0d 100644 --- a/src/map/pet.c +++ b/src/map/pet.c @@ -908,7 +908,7 @@ static int pet_ai_sub_hard(struct pet_data *pd, struct map_session_data *sd, uns } else { //Item Targeted, attempt loot if (!check_distance_bl(&pd->bl, target, 1)) { //Out of range - if(!unit_walktobl(&pd->bl, target, 0, 1)) //Unreachable target. + if(!unit_walktobl(&pd->bl, target, 1, 1)) //Unreachable target. pet_unlocktarget(pd); return 0; } else{ -- cgit v1.2.3-70-g09d2