Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/encounters/attacks/attackHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export async function handleNonMookMultipleTargets(

const isMook = CS.isMook(targetChar)
const toastMessage = isMook
? `Took out ${effectiveWounds} ${effectiveWounds === 1 ? "mook" : "mooks"}`
? `${attacker.name} took out ${effectiveWounds} ${targetChar.name}`

Copilot AI Jan 29, 2026

Copy link

Choose a reason for hiding this comment

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

The toast message may read awkwardly when the number of mooks doesn't match the grammatical number of the character name. For example, "Brick Manly took out 1 Zombies" is grammatically incorrect (should be "1 Zombie"). Mook character names are typically plural (e.g., "Zombies", "Assassins"), but the old code handled this by using "mook"/"mooks" with conditional pluralization based on the count. Consider adding logic to handle singular vs plural forms of the mook name, or use a more flexible phrasing that works regardless of count.

Suggested change
? `${attacker.name} took out ${effectiveWounds} ${targetChar.name}`
? `${attacker.name} took out ${effectiveWounds} of the ${targetChar.name}`

Copilot uses AI. Check for mistakes.
: `Applied ${effectiveWounds} wound${effectiveWounds !== 1 ? "s" : ""} to ${targetChar.name}`
toastSuccess(toastMessage)
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/encounters/attacks/combatHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export function createWoundUpdate(

const description =
isMook && context.isMookTakedown
? `${attacker.name} took out ${wounds} ${wounds === 1 ? "mook" : "mooks"}${defenseDesc}`
? `${attacker.name} took out ${wounds} ${targetChar.name}${defenseDesc}`

Copilot AI Jan 29, 2026

Copy link

Choose a reason for hiding this comment

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

The message may read awkwardly when the number of mooks doesn't match the grammatical number of the character name. For example, "Brick Manly took out 1 Zombies" is grammatically incorrect (should be "1 Zombie"). Mook character names are typically plural (e.g., "Zombies", "Assassins"), but the old code handled this by using "mook"/"mooks" with conditional pluralization based on the count. Consider adding logic to handle singular vs plural forms of the mook name, or use a more flexible phrasing that works regardless of count.

Suggested change
? `${attacker.name} took out ${wounds} ${targetChar.name}${defenseDesc}`
? `${attacker.name} took out ${wounds} of the ${targetChar.name}${defenseDesc}`

Copilot uses AI. Check for mistakes.
: `${attacker.name} attacked ${targetChar.name}${defenseDesc} for ${wounds} wounds`

console.log(`[createWoundUpdate] Creating update for ${targetChar.name}:`, {
Expand Down
Loading