Skip to content

Fixed typo on skill_attack re value comparison.#3391

Open
MrKeiKun wants to merge 1 commit into
HerculesWS:masterfrom
MrKeiKun:fix-3320-typo-dmg_lv
Open

Fixed typo on skill_attack re value comparison.#3391
MrKeiKun wants to merge 1 commit into
HerculesWS:masterfrom
MrKeiKun:fix-3320-typo-dmg_lv

Conversation

@MrKeiKun
Copy link
Copy Markdown
Contributor

@MrKeiKun MrKeiKun commented Sep 4, 2025

Pull Request Prelude

Changes Proposed

Issues addressed: #3320

@MrKeiKun MrKeiKun force-pushed the fix-3320-typo-dmg_lv branch from 1e482bc to 9ffa86b Compare September 4, 2025 11:35
Signed-off-by: Lorenzo Buitizon <the.keikun@gmail.com>
@MrKeiKun MrKeiKun force-pushed the fix-3320-typo-dmg_lv branch from 9ffa86b to a072529 Compare April 28, 2026 10:42
Copy link
Copy Markdown
Contributor

@hemagx hemagx left a comment

Choose a reason for hiding this comment

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

I'm not sure I see the typo and this is mostly because you basically did style changing in same commit as fixing the issue, those shall be seperated, at best you should only fix the styling in the EXACT lines the change happened. please fix this or change the PR to a styling fix instead.

Comment thread src/map/skill.c
}else
battle->delay_damage(tick, dmg.amotion,src,bl,dmg.flag,skill_id,skill_lv,damage,dmg.dmg_lv,dmg.dmotion, additional_effects);
if (dmg.amotion != 0) {
if (shadow_flag == true)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

true checks doesn't need to have == true only false checks are encouraged to do that instead of using !

Comment thread src/map/skill.c
battle->delay_damage(tick, dmg.amotion,src,bl,dmg.flag,skill_id,skill_lv,damage,dmg.dmg_lv,dmg.dmotion, additional_effects);
if (dmg.amotion != 0) {
if (shadow_flag == true)
if (status->isdead(bl) == 0 && additional_effects == true) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same here, perhaps keep status->isdead(bl) as it is for now, it's weird but it's an integer function returning a boolean, perhaps the function type shall be changed instead in a different PR

@hemagx hemagx added this to the Release v2026.05 milestone May 23, 2026
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.

2 participants