Jump to content
  • 0

Need help how to active effect death bound RK can counter range skill ..


Styx15

Question


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.02
  • Content Count:  47
  • Reputation:   0
  • Joined:  09/28/20
  • Last Seen:  

Hello ..

i need help how to set death bound active reflect to range skill damage..

because in my server death bound only reflect mele hit / skill not range..
where i can set that ? in skilldb ? or src ?

i hope somebody can help me..

thank you before...Src Death Bound (RK)          

     if (sc->data[SC_DEATHBOUND] && skill_id != WS_CARTTERMINATION && skill_id != GN_HELLS_PLANT_ATK && !status_bl_has_mode(src,MD_STATUSIMMUNE)) {
                    if (distance_bl(src,bl) <= 0 || !map_check_dir(map_calc_dir(bl,src->x,src->y), unit_getdir(bl))) {
                        int64 rd1 = 0;

                        rd1 = min(damage,status_get_max_hp(bl)) * sc->data[SC_DEATHBOUND]->val2 / 100; // Amplify damage.
                        *dmg = rd1 * 80 / 100; // Received damage = 80% of amplified damage.
                        clif_skill_damage(src, bl, gettick(), status_get_amotion(src), 0, -30000, 1, RK_DEATHBOUND, sc->data[SC_DEATHBOUND]->val1, DMG_SINGLE);
                        skill_blown(bl, src, skill_get_blewcount(RK_DEATHBOUND, 1), unit_getdir(src), BLOWN_NONE);
                        status_change_end(bl, SC_DEATHBOUND, INVALID_TIMER);
                        rdamage += rd1 * 100 / 100; // Target receives 100% of the amplified damage. [Rytech]
                    }
                }


 

Edited by Mael
Use codebox
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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