Jump to content
Easycore

Release: bonus bXDefReturn

Recommended Posts

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
Link to comment
Share on other sites

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;

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



×
×
  • Create New...

Important Information

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