matrix17 Posted February 23, 2012 Posted February 23, 2012 I have just migrated to rAthena from eAthena and having problem with flee. It seems that flee isnt working, everything is sure hit. I'm using the latest build from svn. Someone know why is this? Quote
Jonne Posted February 23, 2012 Posted February 23, 2012 It's neither FLEE nor HIT. It's the hitrate calculation which is outdated. RE defines only a Dodgerate which is: 100% - (HIT - FLEE). Athena calculates Hitrate instead, so you need to change the formula to: Hitrate = HIT - FLEE. Here is a diff: Index: src/map/battle.c =================================================================== --- src/map/battle.c (revision 15627) +++ src/map/battle.c (working copy) @@ -1391,7 +1391,7 @@ { //Hit/Flee calculation short flee = tstatus->flee, - hitrate=80; //Default hitrate + hitrate; if(battle_config.agi_penalty_type && battle_config.agi_penalty_target&target->type) @@ -1408,7 +1408,7 @@ } } - hitrate+= sstatus->hit - flee; + hitrate = sstatus->hit - flee; if(wd.flag&BF_LONG && !skill_num && //Fogwall's hit penalty is only for normal ranged attacks. tsc && tsc->data[sC_FOGWALL]) Quote
Question
matrix17
I have just migrated to rAthena from eAthena and having problem with flee.
It seems that flee isnt working, everything is sure hit.
I'm using the latest build from svn.
Someone know why is this?
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.