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/battle.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/map/battle.c') 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) { -- cgit v1.2.3-70-g09d2