Jump to content
  • 0

FLEE not working


Question

Posted

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

Posted

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...