Skip to content
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

Fix at secondaryDamage #949

Merged
merged 1 commit into from Oct 16, 2021
Merged

Fix at secondaryDamage #949

merged 1 commit into from Oct 16, 2021

Conversation

lucas-tardivo
Copy link
Contributor

@lucas-tardivo lucas-tardivo commented Oct 11, 2021

Resolves #957

Fix when trying to swap targets HP and MP and when target MPs defense transform MP damaging in MP healing.
Basically that baseDamage is setted by HP damage only. So when trying to swap targets HP into MP, the damagingAttack is true since HP damage > 0 and MP is < 0, then MP is just setted to 0.
In another case, if the damage calculation brings an damaging MP attack below 0, the damagingAttack is false because there is no HP damage, so the secondaryDamage is not setted to 0 turning an MP damage in a MP healing.

@Cheshire92
Copy link
Contributor

Could you please write an issue for the problem?
We'd like to have one to link to for each pr.

@lucas-tardivo
Copy link
Contributor Author

@Cheshire92 done #957 :)

@Cheshire92 Cheshire92 linked an issue Oct 13, 2021 that may be closed by this pull request
Copy link
Contributor

@Cheshire92 Cheshire92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@Cheshire92 Cheshire92 merged commit 74398e0 into AscensionGameDev:development Oct 16, 2021
@lucas-tardivo lucas-tardivo deleted the development branch October 27, 2021 20:07
jcsnider pushed a commit that referenced this pull request Mar 28, 2022
lodicolo pushed a commit that referenced this pull request Mar 28, 2022
jcsnider pushed a commit that referenced this pull request Mar 29, 2022
jcsnider pushed a commit that referenced this pull request Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Spell swap target HP into MP not working
2 participants