Jump to content

Recommended Posts

Posted

bonus bXDefReturn


bonus bXDefReturn

Add resistances against return damages.

::Structure::

bonus bPhysicalDefReturn,n;          +n% damage reduction against physical reflect attack
bonus bMagicalDefReturn,n;          +n% damage reduction against magical reflect attack

::Video::

 

 


 

  • Upvote 3
  • Love 1
Posted

Hello. Thanks for this feature.

I've found an especific issue, skill.cpp

if(type >= 1 && (tsd && tsd->bonus.magical_reflect_def_rate))
            dmg.damage -= dmg.damage*tsd->bonus.magical_reflect_def_rate / 100;

this variable type(in debug mode i get a negative value -857....) don't have an initialization then, when i use skill NPC_EARTHQUAKE(653) with the boss Snake Lord, i got an error (The variable 'type' is being used without being initialized).

i just change

 int type; to --> int type = 0;

  • 7 months later...
  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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