death #539
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
java
question
refactor
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
agony-forge/agonyforge!539
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "death"
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?
When someone is killed in a fight, create a corpse and transfer their items into it. Teleport them back to spawn and reset them to full HP.
- Move commService calls inside the fight guard so empty outputs are never sent - When either combatant is already dead (HP <= 0 at tick start), skip all combat and let only the resurrection logic run - Add testResurrectionFilterOnlyIncludesDeadCharacters to verify the filter predicate (c.getCharacter().getHitPoints() <= 0) correctly selects only dead characters, killing all three surviving Pitest mutations: - changed conditional boundary (<= -1) - negated conditional (> 0) - replaced boolean return with true - Fix testFightAttackerDead and testFightDefenderDead to expect 0 hits when a combatant is already dead1bd0ed6a474cad4d04cfCloses #443