summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-02-26 02:31:18 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-02-26 02:31:18 +0000
commit7c4b730c6d8a0201512148fcb795c0f666bfe8c8 (patch)
treed18286ab4e0a11d3c3384c85b84f34b775872235 /src/map/battle.c
parentf8636b8d7c4d3e1e43ea5e0f7c399316651931c9 (diff)
downloadhercules-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/battle.c')
-rw-r--r--src/map/battle.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 5060dfe28..1fe5004f3 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -2571,6 +2571,7 @@ struct Damage battle_calc_misc_attack(
break ;
case ASC_BREAKER:
md.damage = 500+rand()%500 + 5*skill_lv * sstatus->int_;
+ nk|=NK_IGNORE_FLEE; //Only Breaker's Misc part always hits.
break;
}
@@ -2609,7 +2610,7 @@ struct Damage battle_calc_misc_attack(
else if (hitrate < battle_config.min_hitrate)
hitrate = battle_config.min_hitrate;
- if(rand()%100 >= hitrate)
+ if(rand()%100 < hitrate)
i = 1;
}
if (!i) {