matrix17 Posted February 23, 2012 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 5 Reputation: 0 Joined: 02/15/12 Last Seen: January 23, 2017 Share 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 Link to comment Share on other sites More sharing options...
Jonne Posted February 23, 2012 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 153 Reputation: 33 Joined: 12/24/11 Last Seen: September 30, 2024 Share 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 Link to comment Share on other sites More sharing options...
Deacon. Posted February 23, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 54 Reputation: 8 Joined: 01/03/12 Last Seen: December 29, 2013 Share Posted February 23, 2012 Ah, so that is how it is.. Quote Link to comment Share on other sites More sharing options...
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?
Link to comment
Share on other sites
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.