Jump to content
  • 0
Naevus

Max Damage Cap

Question

4 answers to this question

Recommended Posts

  • 0

All damage that's done by any skill passes through skill_attack that's in skill.c, open this file and search for:

	damage = dmg.damage + dmg.damage2;	if( (skill_id == AL_INCAGI || skill_id == AL_BLESSING ||		skill_id == CASH_BLESSING || skill_id == CASH_INCAGI ||		skill_id == MER_INCAGI || skill_id == MER_BLESSING) && tsd->sc.data[SC_PROPERTYUNDEAD] )		damage = 1;
Just do any cap that you might need after this 'if'... Something like:
	if( skill_id == MO_EXTREMITYFIST && damage > 9000 )		damage = 9000;

Share this post


Link to post
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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

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