Files
DarkflameServer/dGame/dComponents/DestroyableComponent.cpp
Aaron Kimbrell cf1e8a54c6 fix(destroyable): damage reductions add up, as the client
The damage reduction behavior set the reduction to its amount and back to 0
when it ended, so a second reduction replaced the first and ending either
removed both. The client's behavior sends AddDamageReduction
(DamageReductionBehavior::Cast) and the destroyable adds it to the current
reduction; removing takes off that amount, never below 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 09:11:20 -05:00

51 KiB