Jump to content
  • 0

FLEE not working


matrix17

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  02/15/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  149
  • Reputation:   33
  • Joined:  12/24/11
  • Last Seen:  

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])

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  54
  • Reputation:   8
  • Joined:  01/03/12
  • Last Seen:  

Ah, so that is how it is..

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...