Jump to content
  • 0

How to fix Autoguard Success rate?


Question

Posted

hello

I would like to fix a success rate of autoguard to 100%  I found some value but really don't know what it mean.

 

status.c

 

case SC_AUTOGUARD:

if( !(flag&SCSTART_NOAVOID) ) {
struct map_session_data *tsd;
int i;
for( i = val2 = 0; i < val1; i++) {
int t = 5-(i>>1);
val2 += (t < 0)? 1:t;
}

 

please advise me.

 

 

2 answers to this question

Recommended Posts

  • 1
Posted

the fastest way by editing on `battle.c::battle_calc_damage`, find

if( (sce = sc->data[SC_AUTOGUARD]) && flag&BF_WEAPON && !(skill_get_nk(skill_id)&NK_NO_CARDFIX_ATK) && rnd()%100 < sce->val2 ) {

 

remove the `rnd()%100 < sce->val2` part, to

if( (sce = sc->data[SC_AUTOGUARD]) && flag&BF_WEAPON && !(skill_get_nk(skill_id)&NK_NO_CARDFIX_ATK) ) {
  • Upvote 1

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...