zlfxl Posted April 17, 2019 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 2 Reputation: 0 Joined: 03/07/17 Last Seen: February 12, 2022 Share Posted April 17, 2019 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 .. Quote Link to comment Share on other sites More sharing options...
0 zlfxl Posted April 17, 2019 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 2 Reputation: 0 Joined: 03/07/17 Last Seen: February 12, 2022 Author Share Posted April 17, 2019 I resolved this. ATK_ADDRATE(wd.damage, wd.damage2, (map_flag_gvg(src->m)) || (map_flag_vs(src->m)) ? 25 : 100) Quote Link to comment Share on other sites More sharing options...
0 crazyarashi Posted April 18, 2019 Group: Developer Topic Count: 50 Topics Per Day: 0.02 Content Count: 776 Reputation: 239 Joined: 02/11/17 Last Seen: Yesterday at 01:17 PM Share Posted April 18, 2019 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); Quote Link to comment Share on other sites More sharing options...
Question
zlfxl
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.