Skip to content

fix: subtract looted resources from defender on attack#247

Draft
Chibbluffy wants to merge 2 commits intobym-refitted:mainfrom
Chibbluffy:bugfix/loot-subtraction
Draft

fix: subtract looted resources from defender on attack#247
Chibbluffy wants to merge 2 commits intobym-refitted:mainfrom
Chibbluffy:bugfix/loot-subtraction

Conversation

@Chibbluffy
Copy link
Copy Markdown
Contributor

Attacker loot was being added to the attacker's resources without deducting from the defender, effectively duplicating resources.

Applies to both standard base attacks (baseSave) and inferno attacks (infernoSave). Defender resources are clamped to 0 to guard against the client reporting more loot than the defender actually held.

@Chibbluffy Chibbluffy requested a review from React1-X May 3, 2026 05:44
@Chibbluffy Chibbluffy self-assigned this May 3, 2026
@Chibbluffy Chibbluffy added the bug Something isn't working label May 3, 2026
@Chibbluffy Chibbluffy marked this pull request as draft May 3, 2026 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant