Jump to content
  • 0

Soul of Sonicblow Damage Change Help


zlfxl

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  03/07/17
  • Last Seen:  

 I would like to reduce the damage of sonic blow while in soul link buffs.

Soul  Additional damage

BG = +25%

WoE = +25%

NORMAl = + 100%

 

                ATK_ADDRATE(wd.damage, wd.damage2, map_flag_gvg(src->m) ? 25 : 100); //+25% dmg on woe/+100% dmg on nonwoe

 

 

->                 ATK_ADDRATE(wd.damage, wd.damage2, map_flag_gvg(src->m) ? 25 : 25); //+25% dmg on woe/+100% dmg on nonwoe

 

If you make this change..

BG = +25%

WoE = +25%

NORMAl = +25% <- ( I want to change to 100%)

 

This is the result...

 

 

How do I fix this?

        if (sc->data[SC_SPIRIT]) {
            if (skill_id == AS_SONICBLOW && sc->data[SC_SPIRIT]->val2 == SL_ASSASIN) {
                ATK_ADDRATE(wd.damage, wd.damage2, map_flag_gvg(src->m) ? 25 : 25); //+25% dmg on woe/+100% dmg on nonwoe
                RE_ALLATK_ADDRATE(wd, map_flag_gvg(src->m) ? 25 : 100); //+25% dmg on woe/+100% dmg on nonwoe
            } else if (skill_id == CR_SHIELDBOOMERANG && sc->data[SC_SPIRIT]->val2 == SL_CRUSADER) {
                ATK_ADDRATE(wd.damage, wd.damage2, 100);
                RE_ALLATK_ADDRATE(wd, 100);

 

Please help beginners ..

 

 

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  03/07/17
  • Last Seen:  

 

 

 

 

 

I resolved this.

                ATK_ADDRATE(wd.damage, wd.damage2, (map_flag_gvg(src->m)) || (map_flag_vs(src->m)) ? 25 : 100)

 

 

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

18 hours ago, zlfxl said:

 ATK_ADDRATE(wd.damage, wd.damage2, (map_flag_gvg(src->m)) || (map_flag_vs(src->m)) ? 25 : 100)

The map_flag_vs is for pvp.
 

ATK_ADDRATE(wd.damage, wd.damage2, (map_flag_gvg(src->m) || map_getmapdata(src->m)->flag[MF_BATTLEGROUND] > 0) ? 25 : 100);

 

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