From 7c4b730c6d8a0201512148fcb795c0f666bfe8c8 Mon Sep 17 00:00:00 2001 From: skotlex Date: Mon, 26 Feb 2007 02:31:18 +0000 Subject: - NPC_AGIUP now boosts flee by 100% and duration is 5+5*lv secs, as stated on the Ragnarok Bible. - Fixed Soul Breaker's misc part not ignoring flee. - Fixed misc attack's flee check being backwards (the less hit%, the more chance you had to connect) - Corrected the range check in vending.c (TRADE_DISTANCE -> AREA_SIZE) - Added define DEFAULT_ENEMY_TYPE in mob.c to simplify the enemy bl check (for easier reading/customization) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9922 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/vending.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/vending.c') diff --git a/src/map/vending.c b/src/map/vending.c index f5d46e25d..c12948de0 100644 --- a/src/map/vending.c +++ b/src/map/vending.c @@ -70,7 +70,7 @@ void vending_purchasereq(struct map_session_data *sd,int len,int id,unsigned cha return; if (vsd->vender_id == sd->bl.id) return; - if (sd->bl.m != vsd->bl.m || !check_distance_bl(&sd->bl, &vsd->bl, TRADE_DISTANCE) + if (sd->bl.m != vsd->bl.m || !check_distance_bl(&sd->bl, &vsd->bl, AREA_SIZE) ) { clif_buyvending(sd, 0, 32767, 4); // too far [Lupus] //probably... we should add either a hack log / or a proper message. But normal player won't see ie anyway -- cgit v1.2.3-60-g2f50