Jump to content
  • 0

Limiting the damage skill


Question

Posted

Hello, I need help to limit the damage of a skill, if I want her to no more than 80k

 

 

case MC_MAMMONITE: skillratio += 50*skill_lv; break;

 

 


if anyone can help I will be very grateful.

T_T

2 answers to this question

Recommended Posts

  • 0
Posted

You have to put the code further down at the end of function "battle_calc_weapon_attack".

 

Probably below "wd = battle_calc_weapon_final_atk_modifiers(wd, src, target, skill_id, skill_lv);".

 

Like...

if(skill_id == MC_MAMMONITE)
    wd.damage = cap_value(wd.damage, INT_MIN, 80000);
  • Upvote 1

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...