mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #611] [MERGED] Fix Game Mode combat target selection #4692
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4692
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/611
Author: @cha1latte
Created: 5/9/2026
Status: ✅ Merged
Merged: 5/9/2026
Merged by: @cha1latte
Base:
main← Head:fix/issue-605-combat-targets📝 Commits (1)
c61341bFix combat target selection📊 Changes
5 files changed (+15 additions, -6 deletions)
View changed files
➕
docs/pr-evidence/issue-605/after.png(+0 -0)➕
docs/pr-evidence/issue-605/before.png(+0 -0)➕
docs/pr-evidence/issue-605/heal.png(+0 -0)➕
docs/pr-evidence/issue-605/skill.png(+0 -0)📝
packages/client/src/components/game/GameCombatUI.tsx(+15 -6)📄 Description
Linked issue
Closes #605
Why this change
Game Mode combat let the user choose Attack or a skill, but clicking the visible enemy card area could fail to send the selected target. Skill targeting also entered target-select without preserving that the selected action was a skill, so special abilities could appear targetable while never resolving against the chosen enemy.
What changed
selectedAction="skill"when choosing a skill in both desktop and mobile combat layouts so enemy/ally target classification works.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Codex verification performed:
GameCombatUI: after selecting Attack, clicking the visible enemy label/card area sent zero combat-round requests.{ "type": "attack", "targetId": "enemy-1" }.{ "type": "skill", "skillId": "spark", "targetId": "enemy-1" }.{ "type": "skill", "skillId": "mend", "targetId": "player-1" }.pnpm checkafter restoring the real client entrypoint; it passed.Docs and release impact
No docs or version files changed.
UI evidence (if applicable)
Before: clicking the visible enemy card area after Attack sent no target action.
After: the same visible enemy card click sends the attack target action.
Offensive skill target proof:
Healing skill target proof:
Summary by CodeRabbit
Bug Fixes
Improvements
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.