-
Notifications
You must be signed in to change notification settings - Fork 759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wd.damage2 not applying targetside calculations / resists #3011
Milestone
Comments
simple code change will fix the issue: src/map/battle.c (line # 5733)
to
|
shouldn't it be even: //Card Fix, tsd side
if (tsd) { //if player on player then it was already measured above
wd.damage = battle->calc_cardfix(BF_WEAPON, src, target, nk, s_ele, s_ele_, wd.damage, 0, wd.flag);
if (flag.lh)
wd.damage2 = battle->calc_cardfix(BF_WEAPON, src, target, nk, s_ele, s_ele_, wd.damage2, 1, wd.flag);
} since wd.damage is damage of right hand, so flag&1 for battle->calc_cardfix should be unset. while when it's set it will return the damage for wd.damage2, since it's the damage of the left hand. Also nice catch btw. |
3 tasks
3 tasks
MishimaHaruna
added a commit
that referenced
this issue
Jul 7, 2021
issue #3011 fix - wd.damage2 not applying target side calculation (resist reductions)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Unintended Offhand Pure Damage on SinX / Target Side card fix not applying to weapon damage 2
To Reproduce
Expected behavior
Resist should apply similar on how it is done on main hand attack
Screenshots
Actual behavior: https://youtu.be/OVG-PbnvEi0
Expected behavior: https://youtu.be/LaYLo5hzkjo
System specs (please complete the following information):
Plugins used or source modifications
N/A
Additional context
Actual behavior: https://youtu.be/OVG-PbnvEi0
Expected behavior: https://youtu.be/LaYLo5hzkjo
The text was updated successfully, but these errors were encountered: