Bläddra i källkod

Removed the Blade Stop range check against players.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13562 54d463be-8e91-2dee-dedb-b68131a5f0ec
ultramage 16 år sedan
förälder
incheckning
8d57253cc3
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. 1 1
      Changelog-Trunk.txt
  2. 1 1
      src/map/battle.c

+ 1 - 1
Changelog-Trunk.txt

@@ -5,7 +5,7 @@ IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 2009/03/02
 	* Blade Stop status no longer prevents item use and equip changing.
-	* Blade Stop skill will now only activate if the attacker is at most 2 cells away (1 if barehanded).
+	* Against non-players, Blade Stop skill will now only activate if the attacker is at most 2 cells away (1 if barehanded).
 2009/03/01
 	* Fixes from 2008/10/13 bugreport:2077 (Only commiting because nobody did until now and those bugs would get lost)
 	* Fixed monster's Spiral Pierce, now it is always blocked by Pneuma.

+ 1 - 1
src/map/battle.c

@@ -2980,7 +2980,7 @@ enum damage_lv battle_weapon_attack(struct block_list* src, struct block_list* t
 		}
 	}
 
-	if( tsc && tsc->data[SC_BLADESTOP_WAIT] && !is_boss(src) && distance_bl(src, target) <= (tsd->status.weapon == W_FIST ? 1 : 2) )
+	if( tsc && tsc->data[SC_BLADESTOP_WAIT] && !is_boss(src) && (src->type == BL_PC || distance_bl(src, target) <= (tsd->status.weapon == W_FIST ? 1 : 2)) )
 	{
 		int skilllv = tsc->data[SC_BLADESTOP_WAIT]->val1;
 		int duration = skill_get_time2(MO_BLADESTOP,skilllv);