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

DoT spell fixes #77674

Merged
merged 2 commits into from
Nov 9, 2024
Merged

DoT spell fixes #77674

merged 2 commits into from
Nov 9, 2024

Conversation

GuardianDll
Copy link
Member

Summary

None

Purpose of change

for some reason i added if( sp.damage_dot( caster ) > 0 ) check, that simply bypassed any logic if dot was zero or negative value
also found a bug, when dot was applied to all bodyparts when it was not supposed to
Fix #77470

Describe the solution

Remove check
Replace second check with something that works better

Testing

GIF 08-11-2024 14-39-37

@github-actions github-actions bot added [C++] Changes (can be) made in C++. Previously named `Code` Mechanics: Enchantments / Spells Enchantments and spells labels Nov 8, 2024
@github-actions github-actions bot requested a review from KorGgenT November 8, 2024 13:45
@github-actions github-actions bot added <Bugfix> This is a fix for a bug (or closes open issue) astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels Nov 8, 2024
@Maleclypse Maleclypse merged commit 243622b into CleverRaven:master Nov 9, 2024
22 of 28 checks passed
@GuardianDll GuardianDll deleted the spell_dot_fixes branch November 9, 2024 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions Mechanics: Enchantments / Spells Enchantments and spells
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"min_dot" and "max_dot" spell fields don't function when negative values
2 participants