Jump to content
  • 0
xG000000

MaX Damage Limit

Question

uqk3OBK.png

 

it tried to limit the reflect but still exceed the max damage limit bonus.

return cap_value(min(rdamage,max_damage),INT_MIN,INT_MAX);

im also using stormbreaker source mod 

bonus bDamageLimit

but when i try to make an item that will chance to deal max  pyhiscal damage, it ignores the reflect of it

  if (sd) {
        for (const auto& it : sd->atkratechance) {
            if (it.value2 > rand() % 1000)
                ATK_ADDRATE(wd.damage, wd.damage2, it.value1);
        }

but when i try it with magic attack the reflect just work fine.

  if (sd) {
        for (const auto& it : sd->matkratechance) {
            if (it.value2 > rand() % 1000)
                MATK_ADDRATE(it.value1);
        }

 

TL:DR. i just want to make a damage cap on my files but looking at battle.cpp i cant make it work. I tried to change max damage in cliff.cpp but it was just visual. max damage on my server deals 2.147Billion and i just want to make it to my specific limit.

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

if u just want to reduce the damage by rate, rAthena implements this Skill Damage Adjustment (originally by @Lilith)

Share this post


Link to post
Share on other sites
  • 0

that only implies with skill damage not physical attack.

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