diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-02-26 02:31:18 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-02-26 02:31:18 +0000 |
commit | 7c4b730c6d8a0201512148fcb795c0f666bfe8c8 (patch) | |
tree | d18286ab4e0a11d3c3384c85b84f34b775872235 /src/map/vending.c | |
parent | f8636b8d7c4d3e1e43ea5e0f7c399316651931c9 (diff) | |
download | hercules-7c4b730c6d8a0201512148fcb795c0f666bfe8c8.tar.gz hercules-7c4b730c6d8a0201512148fcb795c0f666bfe8c8.tar.bz2 hercules-7c4b730c6d8a0201512148fcb795c0f666bfe8c8.tar.xz hercules-7c4b730c6d8a0201512148fcb795c0f666bfe8c8.zip |
- 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
Diffstat (limited to 'src/map/vending.c')
-rw-r--r-- | src/map/vending.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |