Jump to content
  • 0
Maharot

About sacrifice skill.

Question

3 answers to this question

Recommended Posts

  • 1

How can i make my Sacrifice never miss against flee type? It misses on flee type characters T_T

Unless you mean "Flee" as in perfect dodge? If so, sacrifice does miss against players with a lot of Perfect dodge. If you want it to ignore perfect dodge, go to src/map/battle.c

if ( (!skill_num || skill_num == PA_SACRIFICE) && tstatus->flee2 && rnd()%1000 < tstatus->flee2 )
{	//Check for Lucky Dodge
	wd.type=0x0b;
	wd.dmg_lv=ATK_LUCKY;
	if (wd.div_ < 0) wd.div_*=-1;
	return wd;
}

Try changing

if ( (!skill_num || skill_num == PA_SACRIFICE) && tstatus->flee2 && rnd()%1000 < tstatus->flee2 )

to

if ( (!skill_num) && tstatus->flee2 && rand()%1000 < tstatus->flee2 )

  • Upvote 1
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...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.